Hct class Null safety
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.
Properties
- 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.read / write - hashCode → int
-
The hash code for this object.
read-onlyinherited
- hue ↔ double
-
A number, in degrees, representing ex. red, orange, yellow, etc.
Ranges from 0 <= hue < 360
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- tone ↔ double
-
Lightness. Ranges from 0 to 100.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toInt(
) → int -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override
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
.