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
130 stars 3 forks source link

Angular components #35

Closed Crissov closed 1 year ago

Crissov commented 1 year ago
  • Usability as a priority
  • Color-space agnostic
    • API should make no assumptions about number, names, or ranges of components

If usability within a scripting ecosystem is a priority indeed, all angular hues should be in radians because that’s what all math functions assume.

LeaVerou commented 1 year ago

It's far more important to be consistent with how color is represented anywhere else, than to be consistent with math functions. Literally no-one uses radians to describe hues, anywhere.