The alpha color component. Stored as a number from 0 to 1
The blue color component. Stored as a number from 0 to 255
The green color component. Stored as a number from 0 to 255
The red color component. Stored as a number from 0 to 255
Parses a string in numeric or percentage format
Value to parse
The maximum range value for the percentage (e.g.: 255, 360 or 100)
When true, rounds the value to an integer
The parsed value as a number
Check a hexa color (without #)
The alpha (transparency) as a number from 0 to 1
The alpha (transparency) as a number from 0 to 1
The blue channel as a number from 0 to 255
The blue channel as a number from 0 to 255
The green channel as a number from 0 to 255
The green channel as a number from 0 to 255
The hue as a number from 0 to 360. This is a calculated value (use it wisely)
The hue as a number from 0 to 360. This is a calculated value (use it wisely)
The red channel as a number from 0 to 255
The red channel as a number from 0 to 255
The Color as an Rgba structure where the alpha also ranges from 0 to 255
Copies the values into a new Color object
A new Color object
Reads and convert the Hsla structure
The input Hsla structzure
Returns a string uniquely identifying the color
A string uniquely identifying the color (currently rgba)
Reads the value from an CSS color string
String to parse. Accepted formats are Hex, Rgb or Hsl
Make sure that the values are in the right range
Converts the color to an CSS hsl string
The color as an hsl string
Returns the color as an hsla structure
Converts the color to an CSS hsla string
The color as an hsla string
Converts the color to a CSS rgb string
The color as an rgb string
Converts the color to a CSS rgba string
The color as an rgba string
Returns the color as a HEX string
Color in HEX format
Returns the color as an Hex string (e.g. #FFFFFF)
An Hex string
Creates a new color object based on th Hsla structure
Hue (from 0 to 360) or Hsl or Hsla structure
Saturation (from 0 to 100)
Lightness (from 0 to 100)
Alpha (from 0 to 1)
A new instance of the Color object
Generated using TypeDoc
Creates a new black color instance of the Color object