Hct class

HCT, hue, chroma, and tone. A color system that provides a perceptually accurate color measurement system that can also accurately render what colors will appear as in different lighting environments.


chroma double
0 <= newChroma <= ? After setting chroma, the color is mapped from HCT to the more limited sRGB gamut for display. This will change its ARGB/integer representation. If the HCT color is outside of the sRGB gamut, chroma will decrease until it is inside the gamut.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hue double
A number, in degrees, representing ex. red, orange, yellow, etc. Ranges from 0 <= hue < 360
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tone double
Lightness. Ranges from 0 to 100.
getter/setter pair


inViewingConditions(ViewingConditions vc) Hct
Translate a color into different ViewingConditions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toInt() int
toString() String
A string representation of this object.


operator ==(Object o) bool
The equality operator.

Static Methods

from(double hue, double chroma, double tone) Hct
0 <= hue < 360; invalid values are corrected. 0 <= chroma <= ?; Informally, colorfulness. The color returned may be lower than the requested chroma. Chroma has a different maximum for any given hue and tone. 0 <= tone <= 100; informally, lightness. Invalid values are corrected.
fromInt(int argb) Hct
HCT representation of argb.