Click or drag to resize
Version History
Version 1.1

A minor update with miscellaneous additions to improve overall utility.

Improvements

Version 1.0

The initial release.

Color Spaces

  • HSV (hue, saturation, value)
  • HCV (hue, chroma, value)
  • HSL (hue, saturation, lightness)
  • HCL (hue, chroma, lightness)
  • HSY (hue, saturation, luma)
  • HCY (hue, chroma, luma)
  • CMY (cyan, magenta, yellow)
  • CMYK (cyan, magenta, yellow, key)

Features

  • implicit conversion to/from RGB (UnityEngineColor)
  • explicit conversion to/from any other color type
  • explicit conversion to/from Vector3/Vector4
  • color channel indexing
  • linear interpolation (cyclically aware for hue)
  • arithmetic operators
  • equality operators
  • string formattable
  • color space boundary validation and correction
  • awareness of canonical and non-canonical color representations

Demos