shoebot icon indicating copy to clipboard operation
shoebot copied to clipboard

Support miter limits on stroke joins

Open rlafuente opened this issue 3 years ago • 2 comments

Quick one, just a wrapper around cairo's set_miter_limit

Possible syntax: strokejoin(MITER, limit=0.5)

rlafuente avatar Jun 02 '21 21:06 rlafuente

OK, this makes sense that you can add parameters relevant to whatever kind of join you are using to strokejoin.

Does/should stroke(...) accept analgous parameters, e.g.: stroke(join=MITER, miter_limit=0.5) ?

stuaxo avatar Jun 02 '21 21:06 stuaxo

Yeah it's really a super minor effect, but i ran into a small glitch caused by the miterlimit when animating paths today, and remembered that i put off implementing it during the fill/stroke work because it was too low priority. It properly bit back :woman_facepalming:

And yes definitely! While i'm with you with underscores for argument/function names being more Python proper, the Nodebox standard would probably be miterlimit (i followed that for other stroke commands like strokedash)

rlafuente avatar Jun 02 '21 21:06 rlafuente