Hsl class

HSL

HSL stands for "Hue, Saturation, Lightness".

It is a color space used to describe colors, similar to RGB in that it also uses three values to describe a color.

The hue value is the actual color of the pixel, measured in degrees on a color wheel. The range of hue is usually from 0 to 360.

The saturation value represents how pure or intense the hue is, and is usually measured as a percentage. A saturation value of 100% means the hue is at full intensity, while a saturation of 0% is a shade of grey.

The lightness value is also measured as a percentage, and represents the brightness or darkness of the color. A lightness of 0% represents black, while a lightness of 100% represents white.

Constructors

Hsl.new(double hue, int saturation, int lightness)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hue double
The "attribute of a visual sensation according to which an area appears to be similar to one of the perceived colors: red, yellow, green, and blue, or to a combination of two of them".
final
hueString String
Returns a string representation of the hue, using the format: 100°.
no setter
lightness int
The "brightness relative to the brightness of a similarly illuminated white".
final
lightnessString String
Returns a string representation of the lightness, using the format: 100%.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saturation int
The "colorfulness of a stimulus relative to its own brightness".
final
saturationString String
Returns a string representation of the saturation, using the format: 100%.
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