Skip to main content

animate_bolt

Function animate_bolt 

Source
pub fn animate_bolt(bolt: &LightningBolt, time: f32) -> Vec<(Vec2, Vec2, f32)>
Expand description

Animate a bolt: leader progresses downward, then return stroke brightens. Returns segments with animated brightness at the given time.