A color represented using alpha, hue, saturation, and value.
An HSVColor is represented in a parameter space that's motivated by human perception. The representation is useful for some color computations (e.g., rotating the hue through the colors of the rainbow).
Static Methods
Constructors
- HSVColor.fromAHSV(double alpha, double hue, double saturation, double value)
-
Creates a color.
const
Properties
- alpha → double
-
Alpha, from 0.0 to 1.0.
read-only - hashCode → int
-
read-only
- hue → double
-
Hue, from 0.0 to 360.0.
read-only - saturation → double
-
Saturation, from 0.0 to 1.0.
read-only - value → double
-
Value, from 0.0 to 1.0.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
Methods
-
toColor(
) → Color -
Returns this color in RGB.
-
toString(
) → String -
Returns a string representation of this object.
-
withAlpha(
double alpha) → HSVColor -
Returns a copy of this color with the alpha parameter replaced with the given value.
-
withHue(
double hue) → HSVColor -
Returns a copy of this color with the hue parameter replaced with the given value.
-
withSaturation(
double saturation) → HSVColor -
Returns a copy of this color with the saturation parameter replaced with the given value.
-
withValue(
double value) → HSVColor -
Returns a copy of this color with the value parameter replaced with the given value.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited