How can i draw dashed line on canvas ------

How can I draw a dotted, dashed, or center line on the canvas?

You can draw a list of points.

This draws a dotted line

(There is probably a better way to do this)

To draw a dashed line you would need X2 and Y2 for each point and a length of the dash.

Other example selecting the start/end point touching the canvas. And changing the dot/gaps sizes.
DotLinesInCanvas.aia (6.5 KB)

1 Like

dashed line:

blocks draggable

dashedLine.aia (4.2 KB)

3 Likes

Draws a dashed line (it is a bit wobbly):

image

Draws a line with alternating dashes and dots !

image

3 Likes

(@Ramon's blocks from How can i draw dashed line on canvas ------ - #4 by Ramon)

1 Like

My attempt:
Sample  run


dotted_lines.aia (3.8 KB)

3 Likes