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

Parallel deformation of closed loops #48

Open
NicolasW1 opened this issue Dec 7, 2023 · 0 comments
Open

Parallel deformation of closed loops #48

NicolasW1 opened this issue Dec 7, 2023 · 0 comments

Comments

@NicolasW1
Copy link

NicolasW1 commented Dec 7, 2023

When trying to create a parallel circle, the parallel deformer fails for when the radius should be decreased.

import pyx

# works
arcargs = (0.0, 0.0, 1.0, 90, 449)
# does not work
arcargs = (0.0, 0.0, 1.0, 90, 450)

og_path = pyx.path.path(pyx.path.arc(*arcargs))
defo_path = pyx.deformer.parallel(0.1).deform(og_path)

c = pyx.canvas.canvas()
c.stroke(og_path)
c.stroke(defo_path, [pyx.color.rgb.red])
c.writePDFfile()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant