Close
Asset

Oklab TOX

Hi everyone, I made two little components for using the Oklab color space in TouchDesigner.

If you're unfamiliar, you can read this page that describes the whole Oklab color space project, but basically, instead of representing color in terms of red, green and blue, they are represented in terms of (L)ightness, (C)hroma and (h)ue (this is the polar form of the space but there's also a cartesian one)*.

This two COMPs are "better" (more perceptually consistent) equivalents to the hsv to rgb and rgb to hsv tops that are included in TouchDesigner.

I have found them to be great tools for generating pleasing colors palettes and nicer looking color transitions.

 

Hope you enjoy! If you do, please consider checking out my patreon where I have more tox and project files as well as some tutorials, 

 

*Note that the "hue" channel uses values in radians, instead of between 0 and 1, and chroma values above 0.3 tend to be too strong.

Asset Downloads

LCh_to_RGB.tox (1.54 KB)
RGB_to_LCh.tox (1.77 KB)

Comments