I am finally converting my apps to Starling and one of them involves drawing a line to select letters on a board.
I am trying to draw the line using the Starling Graphics extension and that is working just fine except for one little detail: The edges of the line. I would like them rounded instead of square.
As I understand it, this isn't possible? Or does someone know a good way of doing this? I work with a grid and points so even though I tried a rounded Rectangle, I can't quite get that right for diagonal selections etc..
Here is an example of what it looks like now: http://tinyurl.com/okaf5vd
As you can see, the edges are square and I want them rounded.
The code I am using at the moment is just a regular old moveTo, lineTo like so:
s.graphics.lineStyle(_outlineSize, c); s.graphics.moveTo(p1.x * _spacing + off.x, p1.y * _spacing + off.y); s.graphics.lineTo(p2.x * _spacing + off.x, p2.y * _spacing + off.y);
I have looked into a lot of forum posts but came back with no solution that can apply to my current code. Does anybody have any ideas?
Thanks in advance!