# Constructing object via numpy arrays
from colorspace import HSV
# Constructing color object with one single color via float
150, 150, 10) HSV(
HSV color object (1 colors)
H S V
1: 150.00 150.00 10.00
Documentation built with Python 3.11.10
, pyp2qmd 0.1.1
and quarto 1.5.57
on GitHub.
Creates a color object in the Hue-Saturation-Value (HSV) color space. Can be converted to: RGB, sRGB, HLS, and hexcols. Not allowed (ambiguous) are transformations to CIEXYZ, CIELUV, CIELAB, polarLUV, and polarLAB.
HSV(H, S, V, alpha=None)
H
int, float, list, numpy.array
S
int, float, list, numpy.array
V
int, float, list, numpy.array
alpha
None, float, list, numpy.array
[0., 1.]
) where 0.
equals full transparency, 1.
full opacity. If None
(default) no transparency is added.
HSV.colors(fixup=True, rev=False)
HSV.dropalpha()
HSV.get(dimname=None)
HSV.get_whitepoint()
HSV.hasalpha()
HSV.hclplot(**kwargs)
HSV.length()
HSV.set(**kwargs)
HSV.set_whitepoint(**kwargs)
HSV.specplot(**kwargs)
HSV.swatchplot(**kwargs)
HSV.to(to, fixup=True)
# Constructing object via numpy arrays
from colorspace import HSV
# Constructing color object with one single color via float
HSV(150, 150, 10)
HSV color object (1 colors)
H S V
1: 150.00 150.00 10.00
HSV color object (3 colors)
H S V
1: 150.00 1.50 0.10
150.00 0.00 0.70
10.00 1.50 0.10