Expand description
Linear and radial gradient fills with sRGB colour interpolation. Linear and radial gradient fills with multiple colour stops (sRGB interpolation).
Structs§
- Gradient
Stop - A single gradient colour stop at normalized
offsetin[0, 1]. - Linear
Gradient - A linear gradient defined by an axis (
start→end) and colour stops. - Radial
Gradient - A radial gradient defined by a centre point, a radius, and colour stops.
Functions§
- lerp_
color - Linearly interpolate two colours in sRGB component space at
tin[0, 1].