Gets the Alpha component (in the [0, 255] range) of this color. This is a read-only property.
Gets the android-specific integer value representation. Same as the Argb one. This is a read-only property.
Gets the Argb Number representation of this color where each 8 bits represent a single color component. This is a read-only property.
Gets the Blue component (in the [0, 255] range) of this color. This is a read-only property.
Gets the Green component (in the [0, 255] range) of this color. This is a read-only property.
Gets the Hexadecimal string representation of this color. This is a read-only property.
Gets the iOS-specific UIColor value representation. This is a read-only property.
Gets the known name of this instance. Defined only if it has been constructed from a known color name - e.g. "red". This is a read-only property.
Gets the Red component (in the [0, 255] range) of this color. This is a read-only property.
Brighten the color a given amount, from 0 to 100.
(between 0 and 100)
returns the color complement
Darken the color a given amount, from 0 to 100. Providing 100 will always return black.
(between 0 and 100)
Desaturate the color a given amount, from 0 to 100. Providing 100 will is the same as calling greyscale.
(between 0 and 100)
Specifies whether this Color is equal to the Color parameter.
The Color to test.
return the brightness
return the luminance
Completely desaturates a color into greyscale. Same as calling desaturate(100).
return true if brightenss < 128
return true if brightenss >= 128
Lighten the color a given amount, from 0 to 100. Providing 100 will always return white.
(between 0 and 100)
olor : Color
Saturate the color a given amount, from 0 to 100.
(between 0 and 100)
Return this color (as a new Color instance) with the provided alpha
Spin the hue a given amount, from -360 to 360. Calling with 0, 360, or -360 will do nothing (since it sets the hue back to what it was before).
(between 0 and 100)
return the hsl representation of the color
return the CSS hsv representation of the color
return the hsv representation of the color
return the CSS hsv representation of the color
return the CSS rgb representation of the color
returns a new Color from HSL
Creates color from iOS-specific UIColor value representation.
Validates if a value can be converted to color.
Input string.
Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a [0..255] range.