Blue colors.ts
Declarations #
21 declarations
Blue #
Blue
Green #
Green
Green hex_string_to_hsl #
hex_string_to_hsl
(hex: string): Hsl hex
type
stringreturns
Hsl hex_string_to_rgb #
hex_string_to_rgb
(hex: string): Rgb hex
type
stringreturns
Rgb hex_to_rgb #
hex_to_rgb
(hex: number): Rgb Converts a hex color to an RGB color.
hex
type
numberreturns
Rgb Hsl #
Hsl
Hsl hsl_to_hex #
hsl_to_hex
(h: Hue, s: Saturation, l: Lightness): number h
type Hue
s
type Saturation
l
type Lightness
returns
number hsl_to_hex_string #
hsl_to_hex_string
(h: Hue, s: Saturation, l: Lightness): string h
type Hue
s
type Saturation
l
type Lightness
returns
string hsl_to_rgb #
hsl_to_rgb
(h: Hue, s: Saturation, l: Lightness): Rgb Converts an HSL color value to RGB. Conversion formula adapted from http://wikipedia.org/wiki/HSL_color_space. Values h/s/l are in the range [0,1] and returns r/g/b in the range [0,255].
h
type Hue
s
type Saturation
l
type Lightness
returns
Rgb hsl_to_string #
hsl_to_string
(h: Hue, s: Saturation, l: Lightness): string h
type Hue
s
type Saturation
l
type Lightness
returns
string Hue #
Hue
Hue hue_to_rgb_component #
hue_to_rgb_component
(p: number, q: number, t: number): number p
type
numberq
type
numbert
type
numberreturns
number Lightness #
Lightness
Lightness parse_hsl_string #
parse_hsl_string
(hsl: string): Hsl hsl
type
stringreturns
Hsl Red #
Red
Red Rgb #
Rgb
Rgb rgb_to_hex #
rgb_to_hex
(r: number, g: number, b: number): number Converts an RGB color to a hex color.
r
type
numberg
type
numberb
type
numberreturns
number rgb_to_hex_string #
rgb_to_hex_string
(r: number, g: number, b: number): string r
type
numberg
type
numberb
type
numberreturns
string rgb_to_hsl #
rgb_to_hsl
(r: number, g: number, b: number): Hsl Converts an RGB color value to HSL. Conversion formula adapted from http://wikipedia.org/wiki/HSL_color_space. Values r/g/b are in the range [0,255] and returns h/s/l in the range [0,1].
r
type
numberg
type
numberb
type
numberreturns
Hsl Saturation #
Saturation
Saturation to_hex_component #
to_hex_component
(v: number): string v
type
numberreturns
string