[sharing] perceptual colorspace shaders

Jun 12, 2012 at 8:35pm

[sharing] perceptual colorspace shaders

I’ve finally gotten around to uploading some shaders that I developed to translate from RGB to various perceptual colorspaces. I needed these to build a palette snooping tool for arbitrary images, which may be something that others would want to do.

The shaders allow for the following conversions:

RGB –> HSL
RGB –> HSV
HSL –> RGB
HSV –> RGB

RGB –> CIE-XYZ
CIE-XYZ –> RGB

CIE-XYZ –> CIE-L*ab
CIE-XYZ –> CIE-L*uv
CIE-XYZ –> HLAB
CIE-XYZ –> Yxy
CIE-L*ab –> CIE-XYZ
CIE-L*uv –> CIE-XYZ
HLAB –> CIE-XYZ
Yxy –> CIE-XYZ

CIE-L*ab –> CIE-L*CH
CIE-L*CH –> CIE-L*ab

Download link: http://jessegilbert.net/release/shaders/

Feedback welcome!

#46638

You must be logged in to reply to this topic.