typemytype / drawbot

http://www.drawbot.com
Other
407 stars 63 forks source link

add support for lineDash phase #564

Open typemytype opened 9 months ago

typemytype commented 9 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 9 months ago

Yes please. SVG calls it "offset".