While browsing the Rio source I noticed it manages colors in the Oklab color space which I hadn't heard of. I also wasn't expecting the technique it used in the Color.brighter
and Color.darker
methods.
I've been impressed with Rio in the past for allowing minimal Python code to create user interfaces. Curious with how these color operations felt in practice, I created a quick 50 line demo to interact with a simple color wheel.
It looks like the Oklab color space excels at color gradients by giving a natural range through each hue. Unfortunately I don't immediately like how Rio is adjusting brightness with these methods. In the video, see how the outer light colors change through their range of brightness separately from the inner dark colors. This means Color.lighter(0.1)
will have a drastic affect on dark colors and minimal change to lighter colors. This could still be a desirable quality, so I'm unwilling declare this as good or bad.
Separately; points to Rio once again for making small and lightweight tools fun to develop. The community has been lightning quick on my wild questions and ideas. Also points to Oklab for their impressive gradient examples.
Top comments (1)
Minus 100 points to Youtube for forcing my video into a "Shorts" format.