-
I wish to draw a spline shape with e.g. 10 CVs I wish to then cut a 3 holes with a different sets of CVs inside the first shape Is this doable with drawSvg ? Is there some example code that illustrate hole cutting ? I made some progress but I was expecting the triangle to be transparent, it turn out black
Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
cduck
Aug 4, 2021
Replies: 1 comment 1 reply
-
Your code is almost there. Draw both shapes in the same path. p = draw.Path(stroke='red', stroke_width=2, fill='red', fill_rule='evenodd')
p.M(20,-20).h(200).v(-160).h(-200).Z()
p.M(80,-40).v(-100).l(100,50).Z() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cduck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your code is almost there. Draw both shapes in the same path.