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
Gradient colors #2
Comments
I wonder if this feature should be available in this library or if an another library could not be more relevant? I need to study the issue (if another people want participate it could be nice). Moreover I don't think the fluent API is necessary in this case, I prefer something like that: red.gradientTo(green, at: 0.5) |
My two cents: gradients are a drawing operation, not a color operation as such. I think gradients are best handled in other libraries entirely. IMO, this (excellent) project should just focus on color. |
This issue is not about drawing gradients (we have |
Indeed I don't think that "drawing" gradients is pertinent for the library. But building a gradient color array and / or picking a color from it can be useful. For the next version of the library I've started to work work on but it needs to be involved and refined the API design. |
It would be nice to have a method that generates color on a gradient between two colors.
API might look like that:
The text was updated successfully, but these errors were encountered: