colors.ts

Declarations
#

21 declarations

view source

Blue
#

Green
#

hex_string_to_hsl
#

hex_string_to_rgb
#

hex_to_rgb
#

colors.ts view source

(hex: number): Rgb

Converts a hex color to an RGB color.

hex

type number

returns

Rgb

Hsl
#

hsl_to_hex
#

hsl_to_hex_string
#

hsl_to_rgb
#

hsl_to_string
#

Hue
#

hue_to_rgb_component
#

colors.ts view source

(p: number, q: number, t: number): number

p

type number

q

type number

t

type number

returns

number

Lightness
#

parse_hsl_string
#

Red
#

Rgb
#

rgb_to_hex
#

colors.ts view source

(r: number, g: number, b: number): number

Converts an RGB color to a hex color.

r

type number

g

type number

b

type number

returns

number

rgb_to_hex_string
#

colors.ts view source

(r: number, g: number, b: number): string

r

type number

g

type number

b

type number

returns

string

rgb_to_hsl
#

Saturation
#

to_hex_component
#

Depends on
#