Skip to main content

sample_effect_param

Function sample_effect_param 

Source
pub fn sample_effect_param(
    animation: &Animated<EffectValue>,
    time: MediaTime,
) -> EffectParamValue
Expand description

Samples one effect parameter with the project’s keyframe semantics.

Float and Vec2 interpolate component-wise. A straight sRGB Color interpolates premultiplied, as CSS does, to avoid a dark fringe when fading from transparent, then clamps to 0..=1. Enum and Bool hold.