Skip to content

Comments

Fix bug in calculation of circle location#182

Closed
ktchen14 wants to merge 1 commit intopgeu:masterfrom
ktchen14:circle-radius
Closed

Fix bug in calculation of circle location#182
ktchen14 wants to merge 1 commit intopgeu:masterfrom
ktchen14:circle-radius

Conversation

@ktchen14
Copy link
Contributor

The existing code to render a badge draws a circle at the specified y location + half the radius. From the user's perspective, this means that the y value specified in a circle is actually the chord through the circle located halfway between the topmost point and the center.

This is really difficult to use. The y value should correspond to either (1) the line tangent to the topmost point of the circle or (2) the horizontal diameter line of the circle.

This PR changes the y value to mean (1).

@mhagander
Copy link
Member

This has been applied.

@mhagander mhagander closed this Apr 25, 2025
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

Successfully merging this pull request may close these issues.

2 participants