# set stroke color to black
stroke(0)
# set a strok width
strokeWidth(50)
# translate the canvas
translate(150, 50)
# set a line dash
lineDash(2, 2)
# draw a line
line((0, 200), (0, 800))
# translate the canvas
translate(200, 0)
# set a line dash
lineDash(2, 10, 5, 5)
# draw a line
line((0, 200), (0, 800))
# translate the canvas
translate(200, 0)
# set a line dash and offset
lineDash(2, 10, 5, 5, offset=2)
# draw a line
line((0, 200), (0, 800))
# translate the canvase
translate(200, 0)
# reset the line dash
lineDash(None)
# draw a line
line((0, 200), (0, 800))