Skip to content

GLSL color conversions, metrics, and other helpful functions

License

Notifications You must be signed in to change notification settings

Rachmanin0xFF/GLSL-Color-Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLSL-Color-Functions

LCh color space sRGB gamut

Color space conversions, metrics, and other utility functions for color in GLSL.

Still very much a work-in-progress! If you see anything wrong, please let me know (or make a new branch if you're feeling nice).

Currently Included:

Color Spaces:

  • XYZ
  • sRGB
  • RGB
  • L*a*b* (CIELAB)
  • LCh (CIELCh)
  • P3 Display
  • sYCC (sRGB's official YCbCr space)
  • OkLab

Other:

  • A (proper) implementation of CIE Delta-E 2000
  • Color from temperature (cubic approximation) and temperature from color (McCamy approximation)
  • Lightness / Luminance / Luma functions
  • D65/D50 white point option for RGB<->XYZ and L*a*b*<->XYZ

Planned (descending priority):

  • OkHSL/OkHSV
  • Chroma/Hue getter functions
  • Delta E CMC
  • Color temperature adjustment
  • Interpolation wrapper functions
  • CIELUV
  • Gamut mapping?

Credits

Inspired by tobspr's GLSL-Color-Spaces. Algorithms and math from:

About

GLSL color conversions, metrics, and other helpful functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages