CamColor
A color appearance model, based on CAM16, extended to use L* as the lightness dimension, and coupled to a gamut mapping algorithm. Creates a color system, enables a digital design system.
Functions
Link copied to clipboard
Link copied to clipboard
open fun toColor(@FloatRange(from = 0.0, to = 360.0) hue: Float, @FloatRange(from = 0.0, to = Double.POSITIVE_INFINITY, toInclusive = false) chroma: Float, @FloatRange(from = 0.0, to = 100.0) lStar: Float): Int
Given a hue &chroma in CAM16, L* in L*a*b*, return an ARGB integer.