Hello,
I want to draw line objects (with display.newLine function) with a large stroke width.
But it gives an ugly result, because none of the lines have a line join.
So I try to use polylines (also with display.newLine), but there is another problem that I can’t solve : line join seems to be a line miter join and the drawing is rather bad in some circumstances.
Look at the code example below : I don’t want to show the left grayed triangle. Of course, I could reduce the stroke width of the gray polyline, but then gray and white lines would have a different stroke width and that’s not what I want.
local line = display.newLine(200, 100, 100, 200, 200, 300) line:setStrokeColor(0.9, 0.9, 0.9) line.strokeWidth = 30 line = display.newLine(100, 100, 100, 300) line:setStrokeColor(1, 1, 1) line.strokeWidth = 30
Is there a function or property to set which would allow to get another line join (miter, bevel, round) ?
Thanks !