LABColor class

Available Extensions

Constructors

LABColor.fromALAB(double alpha, double l, double a, double b)
Creates a color.
const
LABColor.fromColor(Color color)
Creates an LABColor from an RGB Color.
factory

Properties

a double
The red and green components (a-axis), range from -128 to 127.
final
alpha double
Alpha, from 0.0 to 1.0. The describes the transparency of the color. A value of 0.0 is fully transparent, and 1.0 is fully opaque.
final
b double
Blue-yellow component (b-axis), with values ranging from -128 to 127.
final
hashCode int
The hash code for this object.
no setteroverride
l double
Lightness (Lightness), the value range is 0 to 100.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColor() Color
Returns this color in RGB.
toString() String
A string representation of this object.
override
withA(double a) LABColor
Returns a copy of this color with the a parameter replaced with the given value.
withAlpha(double alpha) LABColor
Returns a copy of this color with the alpha parameter replaced with the given value.
withB(double b) LABColor
Returns a copy of this color with the b parameter replaced with the given value.
withL(double l) LABColor
Returns a copy of this color with the l parameter replaced with the given value.

Operators

operator ==(Object other) bool
The equality operator.
override