HSLuvColor class

Constructors

HSLuvColor.fromColor(Color color)
Creates an HSLuvColor from an RGB Color.
factory
HSLuvColor.fromHSL(double hue, double saturation, double lightness)
Creates a color.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
hue double
Hue, from 0.0 to 360.0. Describes which color of the spectrum is represented. A value of 0.0 represents red, as does 360.0. Values in between go through all the hues representable in RGB. You can think of this as selecting which color filter is placed over a light.
final
lightness double
Lightness, from 0.0 to 100.0. The lightness of a color describes how bright a color is. A value of 0.0 indicates black, and 100.0 indicates white.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saturation double
Saturation, from 0.0 to 100.0. This describes how colorful the color is. 0.0 implies a shade of grey (i.e. no pigment), and 100.0 implies a color as vibrant as that hue gets. You can think of this as the purity of the color filter over the light.
final

Methods

addHSLuv(double h, double s, double l) HSLuvColor
Returns a copy of this color with hue, saturation and lightness being added. If Saturation or Lightness values is > 100, it will be limited to 100. If Saturation or Lightness values is < 0, it will be set to 100.
addHue(double add, [int cycle = 360]) HSLuvColor
Returns a copy of this color with hue being added via the add parameter. It also accepts a cycle parameter, so it circles back when larger than it (default = 360).
addLightness(double add, {double min = 0, double max = 100}) HSLuvColor
Returns a copy of this color with saturation being added via the add parameter. It also accepts a min and max parameters, where default = 0, 100.
addSaturation(double add, {double min = 0, double max = 100}) HSLuvColor
Returns a copy of this color with saturation being added via the add parameter. It also accepts a min and max parameters, where default = 0, 100.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColor() Color
Returns this HSL color in RGB.
toString() String
A string representation of this object.
override
withHue(double hue) HSLuvColor
Returns a copy of this color with the hue parameter replaced with the given value.
withLightness(double lightness) HSLuvColor
Returns a copy of this color with the lightness parameter replaced with the given value.
withSaturation(double saturation) HSLuvColor
Returns a copy of this color with the saturation parameter replaced with the given value.

Operators

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