from colorspace import HCL, sRGB, HSV
# Example using HCL colors
= HCL([0, 40, 80],
cols 30, 60, 80],
[85, 60, 35])
[ cols.colors()
['#FAC8D1', '#C08353', '#5F5500']
Documentation built with Python 3.11.10
, pyp2qmd 0.1.1
and quarto 1.5.57
on GitHub.
Convers the current object into an object of class hexcols and extracts the hex colors as list of str.
If the object contains alpha values, the alpha level is added to the hex string if and only if alpha is not equal to 1.0
.
sRGB.colors(fixup=True, rev=False)
fixup
bool
[0., 1.]
, defaults to True
.
rev
bool
False
.
list
: Returns a list of hex color strings.
from colorspace import HCL, sRGB, HSV
# Example using HCL colors
cols = HCL([0, 40, 80],
[30, 60, 80],
[85, 60, 35])
cols.colors()
['#FAC8D1', '#C08353', '#5F5500']