zng_color

Function with_lerp_space

source
pub fn with_lerp_space<R>(space: LerpSpace, f: impl FnOnce() -> R) -> R
Expand description

Calls f with lerp_space set to space.

See rgba_sampler and hsla_linear_sampler for a way to set the space in animations.