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
Repeating gradient #548
Comments
TIL, great idea. I prefer to add an associated value to the enum since we provide similar API for Animtable and some other properties. But we need to handle the parsing careful to apply default @tbaranes any idea on the API interface? |
New idea, when repeating have an odd numbers of colors, with last colors same as first colors |
We could add easily repeating gradient
We can find the concept in css
https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_gradient-linear_repeating2
https://developer.apple.com/library/content/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Gradients/Gradient.html
We need for that the number of repetitions
We could add parameter to the
GradientMode
or I prefer to add a var inGradientDesignable
For Linear it is very easy
For radial, same things and also an adaptation must be done when computing
locations
(now it is [0, 1])I try with that but not sure that we must do that
The text was updated successfully, but these errors were encountered: