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

Allow drawing point with large scale and small strokeWeight. #4756

Merged
merged 7 commits into from
Mar 13, 2021

Conversation

TakumaKira
Copy link
Contributor

@TakumaKira TakumaKira commented Aug 19, 2020

Resolves #4707 Shape point() does not work with scale > 1, strokeWeight < 1

Changes:

  • Remove the conditional statement to replace a circle with the radius below 1px to a rectangle.
  • Modify the conditional statement of the test to allow a not entirely white pixel of a dot with the radius below 1px.

PR Checklist

Takuma Kira added 4 commits August 19, 2020 00:48
Remove a Math.round and a conditional statement from p5.Renderer2D.point function because a point is not rendered as intended when large scale and small strokeWeight set.
This change of the conditional is needed to allow drawing points with a radius below 1px, and it is enough to check the point is entirely black when it failed to reset the rendering matrix.
Remove a Math.round and a conditional statement from p5.Renderer2D.point function because a point is not rendered as intended when large scale and small strokeWeight set.
This change of the conditional is needed to allow drawing points with a radius below 1px, and it is enough to check the point is entirely black when it failed to reset the rendering matrix.
@welcome
Copy link

welcome bot commented Aug 19, 2020

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already. And be sure to add yourself to the list of contributors on the readme page!

@lmccart lmccart merged commit 39b4fd7 into processing:main Mar 13, 2021
@lmccart
Copy link
Member

lmccart commented Mar 13, 2021

thanks!

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.

Shape point() does not work with scale > 1, strokeWeight < 1
2 participants