Skip to main content

clamp_seed

Function clamp_seed 

Source
pub fn clamp_seed(seed: Color) -> Color
Expand description

A seed brought into what gives a usable ramp: opaque, its lightness within SEED_LIGHTNESS (nearly black or white seeds have no hue to speak of) and its saturation within its hue band’s limit for solids. A seed already usable comes back unchanged (to the byte).