Rounded Lines

I am working on a word search type game.  I am trying to create a “rounded line”.  The only way I could get this working was a line with circles at the end.  This is actually working pretty good except the alpha is .5 so it is darker where the circle and line intercept.

Is there a better way to do this besides a line/circle?

If not…is there a way to prevent the overlapping of the circle/line without changing the alpha to 1?

Thanks for any advice!

Warren

Hi @warrenkuhl,

A rounded rectangle should meet the need here. Just make sure you set the radius to at least half the height of the object (you can go higher just like you would in CSS and it will curve to its natural half point).

https://docs.coronalabs.com/api/library/display/newRoundedRect.html

Take care,

Brent

Hi @warrenkuhl,

A rounded rectangle should meet the need here. Just make sure you set the radius to at least half the height of the object (you can go higher just like you would in CSS and it will curve to its natural half point).

https://docs.coronalabs.com/api/library/display/newRoundedRect.html

Take care,

Brent