Skip to main content

sample_paint

Function sample_paint 

Source
pub fn sample_paint(animation: &Animated<Paint>, time: MediaTime) -> Paint
Expand description

Samples an animated paint. Colors interpolate premultiplied; gradient geometry and stop offsets interpolate numerically, then offsets are kept ordered in 0..=1 and radii positive. Mismatched keyframes hold the left paint.