OkLch class
Represents a color in the OkLCH color space.
L: Lightness, typically in range 0, 1
C: Chroma, non-negative value
h: Hue angle in radians, typically in range 0, 2π
Constructors
- OkLch(double l, double c, double h)
- OkLch.fromColor(Color color)
-
factory
- OkLch.fromOkLab(OkLab lab)
-
factory
Properties
Methods
-
analogous(
{int count = 2, double angle = 30}) → List< OkLch> -
complementary(
) → OkLch -
copyWith(
{double? lightness, double? chroma, double? hue}) → OkLch -
darker(
double percentage) → OkLch -
desaturate(
double percentage) → OkLch -
lighter(
double percentage) → OkLch -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rotated(
double degrees) → OkLch -
saturate(
double percentage) → OkLch -
shades(
{int count = 5}) → List< OkLch> -
splitComplementary(
) → List< OkLch> -
tetradic(
) → List< OkLch> -
tints(
{int count = 5}) → List< OkLch> -
toColor(
) → Color -
toOkLab(
) → OkLab -
toString(
) → String -
A string representation of this object.
override
-
triadic(
) → List< OkLch> -
withChroma(
double c) → OkLch -
withHue(
double h) → OkLch -
withLightness(
double l) → OkLch
Operators
-
operator +(
OkLch other) → OkLch -
operator -(
OkLch other) → OkLch -
operator ==(
Object other) → bool -
The equality operator.
override