API Reference¶
Color palettes¶
Most functions listed above are exported and can be accessed directly via the colorspace package, such as colorspace.hcl_palettes(), colorspace.qualitative_hcl() and more.
Gives access to the default color palettes of the colorspace package. |
|
Qualitative HCL color palette. |
|
Sequential HCL color palette. |
|
Diverging HCL color palette. |
|
HCL rainbow, a qualitative cyclic rainbow color palette with uniform luminance and chroma. |
|
HEAT hcl, a sequential color palette. |
|
HCL terrain colors, a sequential palette. |
|
Diverging HSV color palette. |
|
Infamous rainbow palette. |
|
A class for custom color palettes with a fixed number of colors. |
|
Hy, I am the base class. |
GUI for choosing color palettes¶
Exported function, can be accessed via colorspace.choose_palette().
Graphical user interface to choose HCL based color palettes. |
Assessing colors and palettes¶
Visualization of the RGB and HCL spectrum given a set of hex colors. |
|
Create color palette swatch plots. |
Color vision defficiency¶
Object to simulate color vision deficiencies (CVD) for protanope, deteranope, and tritanope visual constraints. |
|
Transform a vector of given colors to the corresponding colors with chroma reduced (by a tunable amount) in HCL space. |
|
Simulate Color Vision Deficiency |
|
Simulate Color Vision Deficiency |
|
Simulate Color Vision Deficiency |
Color manipulation¶
Get maximum chroma for a specific combination of hue and luminance. |
|
W3C Contrast Ratio |
|
Algorithmically lighten colors. |
|
Algorithmically darken colors. |
|
Extracting alpha transparency. |
|
Adjust alpha transparency. |
Color library/color transformations¶
Create polarLUV (HCL) Color Object |
|
alias of |
|
Create CIELUV Color Object |
|
Create CIEXYZ Color Object |
|
Create RGB Color Object |
|
Create Standard RGB (sRGB) Color Object |
|
Create CIELAB Color Object |
|
Create Polar LAB Color Object |
|
Create HSV Color Object |
|
Create HLS Color Object |
|
Create Hex Color Object |