-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Path has been break apart when applying roughness = 2 #162
Comments
The path you're drawing is not drawing a circle but a series of arcs. Those arcs get more exaggerated with higher roughness. You can update your path string to have a single arc |
Hi @pshihn, That's an approach, but is there an API from roughjs to convert an eclipse shape to single arc path? const rectangle = generator.rectangle(...);
const path1 = generator.toPaths(rectangle);
const ellipse = generator.ellipse(...);
const path2 = generator.toPaths(ellipse);
subtract(path1, path2); Thank you! |
I have a path like this:
https://jsfiddle.net/qetypnac/2/
roughness = 0
roughness = 2
, the paths of eclipse inside are break apartI don't know this is a bug a not, but is there any work around to reduce the breaking parts of eclipse?
Thanks!
The text was updated successfully, but these errors were encountered: