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

Visible jaggies on some gradient types #17

Closed
micycle1 opened this issue Dec 31, 2024 · 1 comment
Closed

Visible jaggies on some gradient types #17

micycle1 opened this issue Dec 31, 2024 · 1 comment
Assignees

Comments

@micycle1
Copy link
Owner

micycle1 commented Dec 31, 2024

Until now PeasyGradients rendering has been heavily optimised for speed.
However some gradients exhibit numerical artifacts, particularly visible on what are meant to be straight edges.

Fix any gradients with perceptible problems (which may mean giving up some performance in favour of visuals).

Example

The straight lines on this polygonal gradient having 4 sides have visible jaggies.
Snipaste_2024-12-31_00-56-44

@micycle1
Copy link
Owner Author

micycle1 commented Dec 31, 2024

Follow up for polygonal gradients

Jaggies fixed using a larger LUT and more precise atan2 approximation.

Snipaste_2024-12-31_01-02-45

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

No branches or pull requests

1 participant