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

Antialias cone gradients #572

Open
humdingerb opened this issue Jul 9, 2023 · 4 comments
Open

Antialias cone gradients #572

humdingerb opened this issue Jul 9, 2023 · 4 comments

Comments

@humdingerb
Copy link
Member

Conic gradients would look nicer if the border where colour 2 (white) encounters colour 1 (blue) again. See this zoomed-in example:

cone

@dsizzle
Copy link
Collaborator

dsizzle commented Jul 23, 2023

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?

@humdingerb
Copy link
Member Author

I was going to say that the use-cases I’ve seen would mostly be where the start and end color are the same.

You mean doing the cone like WonderBrush:

WBconic

That would solve our issue. Removes some artsy potential though...

@dsizzle
Copy link
Collaborator

dsizzle commented Jul 23, 2023

no, that seems like it reverses the colors halfway thru - I mean once ArtPaint allows setting more colors in the gradient, the user would manually set the start and end to the same. That's the use case I'm most familiar with. For drawing stuff such as:

ax-anisotropic-brushed-pot

@humdingerb
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants