Skip to content

Function: getBlue() ​

ts
function getBlue(color, mode?): number;

Defined in: getBlue.ts:14

Get the Blue value for a color.

Parameters ​

ParameterTypeDefault valueDescription
colorColorundefinedthe 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 blue value of the color