Gradient functions #132
jarodium
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to open this discussion on the topic of gradient functions.
As mentioned in #130 and taking #104 as the source base ( the gradient ) I was trying to create a gradient function with 2 distinct colors as a start and a end colors.
I ended up using the one color as the base ( and for the other color, I just added another gradient with composite2 ).
Taking from @jcupitt 's example, I ended up making some tweaks, just for "quality of life":
My goal now is to add or remove more of the gradient to the image ( I mean that I want to put solid black at X% of the image and transparent black at Y%) , and I am experimenting on adding/removing extra "adds" and multiplies, and tweaking up with the divide to see if it looks nice.
I can also do rotations on the result of this function but the results are not quite I expected. I am sure I'm not doing it the proper way or perhaps the rotation may require some more solid colors to provide better results, but i'm pretty much happy with this function.
In my use case, I use lab as the interprepration, because i'm using hex colors and I require a conversion process that does not require many conversion steps from sRGB to LAB, and was told that LAB equals HSL and it was safe to use.
In time, and more testing I will keep this thread updated with other enhancements I've made.
What is your take in the gradient function?
Beta Was this translation helpful? Give feedback.
All reactions