ColorProperties class
A convenience class for determining properties of colors.
Constructors
- ColorProperties(String color)
Properties
- alpha → num
-
The alpha level of
color
.no setter - blue → num
-
The blue component of
color
.no setter - blueAsPercent → num
-
The blue proportion component of
color
, expressed as a percentage.no setter - blueAsProportion → num
-
The blue proportion component of
color
.no setter - chroma → num
-
The chroma, or range of proportion components, of
color
.no setter - chromaAsPercent → num
-
The chroma, or range of proportion components, of
color
.no setter - color ↔ String
-
Style expression representing a color.
getter/setter pair
- green → num
-
The green component of
color
.no setter - greenAsPercent → num
-
The green proportion component of
color
, expressed as a percentage.no setter - greenAsProportion → num
-
The green proportion component of
color
.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hueInDegrees → num?
-
The hsl hue, or direction, of
color
, in degrees.no setter - intensity → num
-
The intensity, or mean proportion component, of
color
.no setter - intensityAsPercent → num
-
The intensity, or mean proportion component, of
color
, expressed as a percentage.no setter - lightness → num
-
The lightness, or mean of the proportion component optima,
of
color
.no setter - lightnessAsPercent → num
-
The lightness, or mean of the proportion component optima,
of
color
, expresses as a percent.no setter - luma → num
-
The luma, or mean proportion component weighted by
human perception of lightness, of
color
.no setter - lumaAsPercent → num
-
The luma, or mean proportion component weighted by
human perception of lightness, of
color
, expressed as a percentage.no setter - max → num
-
The maximum proportion component of
color
.no setter - maxAsPercent → num
-
The maximum proportion component of
color
, expressed as a percentage.no setter - min → num
-
The minimum proportion component of
color
.no setter - minAsPercent → num
-
The minimum proportion component of
color
, expressed as a percentage.no setter - red → num
-
The red component of
color
.no setter - redAsPercent → num
-
The red proportion component of
color
, expressed as a percentage.no setter - redAsProportion → num
-
The red proportion component of
color
.no setter -
rgba
→ List<
num> -
no setter
-
rgbProportions
→ List<
double> -
The red-green-blue proportion components of
color
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saturation → num
-
The hsl saturation of
color
.no setter - saturationAsPercent → num
-
The hsl saturation of
color
, expressed as a percentage.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited