file
colors.jsHueSaturation class
- class HueSaturation
- Class with logic and spline approximations to calculate ZHSV.
Functions
srgb_from_hsv
(
hue, saturation, value)
-
Calculate sRGB from
hue, saturation, value
. hsv_from_srgb
(
srgb)
-
Calculate
{ hue, saturation, value }
fromsrgb
. zhsl_from
(
srgb, gamut)
-
Calculate
{ hue, saturation, lightness }
fromsrgb
. srgb_from_zhsv
(
hue, saturation, value, gamut)
-
Calculate sRGB from
{ hue, saturation, value }
. hex_from_zhsv
(
hue, saturation, value, gamut)
-
Calculate hexadecimal color from
{ hue, saturation, value }
. zhsv_from
(
srgb, gamut)
-
Calculate
{ hue, saturation, value }
fromsrgb
. srgb_from_zhsl
(
hue, saturation, lightness, gamut)
-
Calculate sRGB from
{ hue, saturation, value }
. hex_from_zhsl
(
hue, saturation, lightness, gamut)
-
Calculate hexadecimal color from
{ hue, saturation, value }
. color2rgba
(
color)
-
Yield [ R, G, B, A ] from
color
. zmod_assignop
(
col, prop, op, num, perc)
- Re-assign a specific color property.
zmod
(
colorlike, mods)
- Apply a variety of modifications to an input color.
zmod4
(
colorlike)
- Find zmod() for a color.
zcam4
(
colorlike)
- Find zcam() for a color.
zlerp
(
c1, c2, t)
- Interpolate between 2 colors.
lgrey
(
lightness)
- Yield a grey tone with CIELAB lightness.