ColourSpace class sealed

The shared base of Colour, HSVColour and HSLColour, so any of them can be converted to the others.

Implementers

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
toColour() → Colour
This colour as an RGB Colour.
toHSL() → HSLColour
This colour as an HSLColour.
toHSV() → HSVColour
This colour as an HSVColour.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

colorFromHue(double alpha, double hue, double chroma, double secondary, double match) → Color
The same as colourFromHue, but returns a plain Flutter Color.
colourFromHue(double alpha, double hue, double chroma, double secondary, double match) → Colour
Builds a Colour from the intermediate values of an HSL or HSV to RGB conversion.
getHue(double red, double green, double blue, double max, double delta) → double
Works out the hue (0 to 360) from red, green and blue values between 0.0 and 1.0.