Colors
interp(start,end,t) interpolates between two colors. palette(start,end,lim)
returns a function that maps numeric data to those colors. Both are available
in JSX and as named imports.
Colors must use #rgb, #rgba, #rrggbb, or #rrggbbaa notation. Gum's named color
constants are hex strings and work directly. Literal CSS color names and the
none paint value are not interpolation inputs.
Interpolation is linear in the RGB and alpha channels and returns an rgba(...)
string. Fractions are clamped to [0,1]. Palette limits default to [0,1], may be
reversed, and must have distinct finite endpoints. Values outside the limits
use the endpoint color. The palette owns its limits and parses its colors once.
Use a palette in construction-time style callbacks for bars or custom markers: