Get Specific Palette Setting

Description

Returns one specific item of the palette settings, e.g., the current value for h1 or l2. If not existing a None will be returned.

Usage

qualitative_hcl.get(key)

Arguments

keystr
Name of the setting to be returned.

Return

None if key does ont exist, else the current value will be returned.

Examples

# Exemplarily for rainbow_hcl (works for the
# other HCL palettes as well)
from colorspace import rainbow_hcl
a = rainbow_hcl()
a.get("h1")
0
a.get("c1")
50
a.get("l1")
70
a.get("not_defined")