Function: getRed()
ts
function getRed(color, mode?): number;Defined in: getRed.ts:14
Get the Red value for a color.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
color | Color | undefined | the color to get the value from |
mode | "decimal" | "percentage" | "raw" | "decimal" | the mode to return the value in, if no valid mode is provided it always returns decimal * decimal (default): each color component represented as an integer between 0-255. * percentage: each color component represented as a percentage * raw. Raw is the internal color object values, with no rounding |
Returns
number
the red value of the color