-
Notifications
You must be signed in to change notification settings - Fork 19
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
Antialias cone gradients #572
Comments
I was going to say that the use-cases I’ve seen would mostly be where the start and end color are the same. However, recently I saw where people make purposely hard edged conic gradients for things like pie charts. For that you’d want any hard edge to be antialiased. Not sure how hard it is to do, maybe if the previous pixel differs by more than a certain amount, add a pixel with a color halfway between? Or the average of the pixel to the left and above? |
Right. It's more flexible (once more than two colours are possible), but needs to have the problem solved of antialiasing a hard colour switch, if the user sets the start and end colours to (very) different colours. |
Conic gradients would look nicer if the border where colour 2 (white) encounters colour 1 (blue) again. See this zoomed-in example:
The text was updated successfully, but these errors were encountered: