JuliaGraphics / ColorTypes.jl

Basic color definitions and traits
Other
78 stars 36 forks source link

add HCT COLOR SYSTEM #283

Open themantra108 opened 2 years ago

timholy commented 2 years ago

A pull request would be very welcome! Even a link to a spec sheet with formulas for conversion to & from other color spaces would contribute a bit, it seems difficult to find.

themantra108 commented 2 years ago
cheat_sheet

https://github.com/material-foundation/material-color-utilities

themantra108 commented 2 years ago

getters require tone

Artoria2e5 commented 1 year ago

According to the author at https://material.io/blog/science-of-color-design, HCT is when you glue the CIECAM16 C, h with CIELAB L*. A very big headache here is that ColorTypes has no way to express a viewing condition, but HCT code seems to feature it very prominently (https://github.com/material-foundation/material-color-utilities/blob/main/typescript/hct/hct.ts).