prep_color
prep_color(base=None, palette=None, blending=None, index=None, lighten=None, saturate=None, modifier=None, shift=False, absolute=False, clip=True, color_space='rgb', modification_space='lab', return_color_code=True, alpha=None, cycle=None):
LLM Docstring
Module-level shortcut for ColorPalette.prep_color: compose a color from a base
color or palette with optional blending/indexing and saturate/lighten/modify/alpha
transformations.
base:Anyan explicit base color
palette:Anya palette to draw from
blending:Anya blend amount
index:Anya palette index
lighten:Anya lighten amount
saturate:Anya saturate amount
modifier:Anya custom modification callback
shift:boolapply modifications additively
absolute:boolset rather than scale the modified channel
clip:boolclip the result
color_space:strthe working color space
modification_space:strthe modification space
return_color_code:boolreturn hex codes
alpha:Anyan alpha value
cycle:Anycycle the palette when indexing
:returns:_the composed color(s)