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

LineCap::Square produces same result as LineCap::Butt #635

Open
sbauer322 opened this issue Jul 25, 2020 · 0 comments
Open

LineCap::Square produces same result as LineCap::Butt #635

sbauer322 opened this issue Jul 25, 2020 · 0 comments

Comments

@sbauer322
Copy link
Contributor

sbauer322 commented Jul 25, 2020

I seem to be having trouble with LineCap::Square. In particular, it doesn't go past the point like LineCap::Round does. Instead it stops right at the point like LineCap::Butt, which is the default.

I've attached some sample images below with several individual lines. The black dots are the start and end points of these lines.

The helpful people of the nannou Slack suggested this might be a problem with lyon so I figure I should ask here first before reaching out to lyon.

EDIT: Here is the sketch I was working on when I noticed the problem, if it helps reproduce the issue. You'll need to comment / uncomment the two cap functions as appropriate.

LineCap::Butt
caps_butt_points

LineCap::Round
caps_round_points

LineCap::Square
caps_square_points

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