Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stroke properties #363

Open
rlafuente opened this issue Mar 28, 2021 · 1 comment
Open

Add stroke properties #363

rlafuente opened this issue Mar 28, 2021 · 1 comment
Assignees

Comments

@rlafuente
Copy link
Contributor

Drawbot has miterLimit, lineJoin, lineCap and lineDash (see docs).

Cairo supports these, it should be straightforward to implement. We never did because Nodebox didn't support them and no one voiced the need for them.

While we're at it, I'm ok with using the drawbot syntax (adapted to the lowercase function names), but to me it seems a lot saner to group all the stroke settings inside stroke:

stroke("#dadada", width=50)
stroke("#d0d0d0", linecap="square")
stroke(miterlimit=30)
@rlafuente rlafuente self-assigned this Mar 28, 2021
@villares
Copy link

I like that very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants