Skip to main content

find_glow_effect

Function find_glow_effect 

Source
pub fn find_glow_effect(effects: &[AnimationEffect]) -> Option<&GlowConfig>
Expand description

M3: find the first glow effect in a list, if present.

glow is a static (non-time-varying) coloured halo — unlike every other effect resolve_props_for_effects resolves, it deliberately is not folded into AnimatedProperties: GlowConfig.color has no corresponding field there, and extending AnimatedProperties’s public shape is out of scope for this workstream. Callers apply the returned config directly as a CSS filter: drop-shadow(...) (see rustmotion_components::box_builder::apply_glow_effect), which is the only place that needs the raw colour string.