Tools and utilities


Tools and utilities


This is a set of miscelaneous tools and utilities:

  • sRGB.cls: a class to represent sRGB color values. You will find conversion methods to linear RGB, XYZ and OKLab, and a ΔEOK distance function, which returns the distance between two sRGB points, as measured in the OKLab color space (plain, highlighted).
  • w3c_colors.cls: a set of color utilities created by Rony Flatscher, centered on the W3C "CSS Color Module Level 3" recommendation (plain, highlighted)..