WICG / color-api

A proposal and draft spec for a Color object for the Web Platform, loosely influenced by the Color.js work. Heavily WIP, if you landed here randomly, please move along.
https://wicg.github.io/color-api/
Other
135 stars 3 forks source link

Add diagram for colorspace conversion #13

Open svgeesus opened 3 years ago

svgeesus commented 3 years ago

Show the simple case of

  1. linearisation
  2. matrix to XYZ
  3. matrix from XYZ
  4. gamma-encoding

Expand to

  1. linearisation
  2. matrix to XYZ
  3. chromatic adaptation
  4. matrix from XYZ
  5. gamma-encoding

Expand to a chain with derived color spaces (HSL etc derived from sRGB)

svgeesus commented 3 years ago

This will also need to take into account scaling, for SDR <-> HDR conversions; and gamut mapping, if the target is a display or other output device.