typemytype / drawbot

http://www.drawbot.com
Other
393 stars 61 forks source link

add support for lineDash phase #564

Open typemytype opened 5 months ago

typemytype commented 5 months ago

phase is setting the starting of the line dash pattern

proposal, adding a single keyword phase or start defaults to 0

lineDash(10, 4, start=10)

https://github.com/typemytype/drawbot/blob/master/drawBot/context/pdfContext.py#L210 --> https://developer.apple.com/documentation/coregraphics/1455911-cgcontextsetlinedash

https://github.com/typemytype/drawbot/blob/master/drawBot/context/svgContext.py#L658 --> stroke-dashoffset

justvanrossum commented 5 months ago

Yes please. SVG calls it "offset".