New Feature - Color Transition Now Goes Through The Color Wheel

116 views
Skip to first unread message

Mathieu

unread,
Apr 17, 2018, 8:24:13 AM4/17/18
to Lightjams

After many failed attempts at improving color transitions, finally it's done! The problem was mostly about performance since going from the HSL color model to RGB has a significant cost.


It's now the best of both worlds: create effects by independently controlling the hue, saturation and intensity components while doing color transitions in the RGB color model. The previous color transitions were going around the color wheel, which had the downside of showing unwanted colors. This improved transition behavior is automatic and replaces the old one without having to change anything in your project.


That means that if you do a fade between two grids, each one specifying a different hue, the resulting merged color will go through the color wheel as shown by the image below.





This behavior is obtained by controlling both the hue and the saturation during a transition. The same new color transition behavior is used when merging two or more hues. The hues are added like it would be in the RGB color model. For example, if you add two complementary hues, the result is gray.

Another change coming with this new behavior is that when no hue is specified, the result is gray. Before it was red, which was confusing at first.

I don't think anyone will miss the old transition behavior. But if you do, please let me know!

Chris Watts

unread,
Apr 17, 2018, 8:43:04 AM4/17/18
to Lightjams
Looking forward to trying this later!

o865324

unread,
Apr 17, 2018, 8:47:56 AM4/17/18
to Lightjams
Brilliant - Another great development.

Except for all the time I've spent getting transition.hue working! :-)
Reply all
Reply to author
Forward
0 new messages