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

Fixed arc drawing bug for a non-whole number of degrees #4014

Merged
merged 1 commit into from Sep 5, 2019

Conversation

radarhere
Copy link
Member

Resolves #4005

If the angle between the start and end of an arc is not a whole number

ellipse(Imaging im, int x0, int y0, int x1, int y1,
float start, float end, const void* ink_, int fill,

int maxEdgeCount;

then simply combining the two floats is not correct.

maxEdgeCount = end - start;

@cgohlke figured this out, and solves it by rounding up.

@radarhere radarhere added the Bug Any unexpected behavior, until confirmed feature. label Aug 12, 2019
@hugovk hugovk merged commit bd2d7cb into python-pillow:master Sep 5, 2019
@radarhere radarhere deleted the arc branch September 5, 2019 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Any unexpected behavior, until confirmed feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash after calling arc with the width parameter
2 participants