ColorUtils class
Color science utilities.
Utility methods for color science constants and color space conversions that aren't HCT or CAM16.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
alphaFromArgb(
int argb) → int - Returns the alpha component of a color in ARGB format.
-
argbFromLab(
double l, double a, double b) → int - Converts a color represented in Lab color space into an ARGB integer.
-
argbFromLinrgb(
List< double> linrgb) → int - Converts a color from linear RGB components to ARGB format.
-
argbFromLstar(
double lstar) → int - Converts an L* value to an ARGB representation.
-
argbFromRgb(
int red, int green, int blue) → int - Converts a color from RGB components to ARGB format.
-
argbFromXyz(
double x, double y, double z) → int - Converts a color from ARGB to XYZ.
-
blueFromArgb(
int argb) → int - Returns the blue component of a color in ARGB format.
-
delinearized(
double rgbComponent) → int - Delinearizes an RGB component.
-
greenFromArgb(
int argb) → int - Returns the green component of a color in ARGB format.
-
isOpaque(
int argb) → bool - Returns whether a color in ARGB format is opaque.
-
labFromArgb(
int argb) → List< double> - Converts a color from ARGB representation to Lab* representation.
-
linearized(
int rgbComponent) → double - Linearizes an RGB component.
-
lstarFromArgb(
int argb) → double - Computes the L* value of a color in ARGB representation.
-
lstarFromY(
double y) → double - Converts a Y value to an L* value.
-
redFromArgb(
int argb) → int - Returns the red component of a color in ARGB format.
-
whitePointD65(
) → List< double> - Returns the standard white point; white on a sunny day.
-
xyzFromArgb(
int argb) → List< double> - Converts a color from XYZ to ARGB.
-
yFromLstar(
double lstar) → double - Converts an L* value to a Y value.