Skip to main content

sweep

Function sweep 

Source
pub fn sweep(
    id: impl Into<ElementId>,
    theme: &Theme,
    color: Hsla,
    cx: &App,
) -> Option<AnyElement>
Expand description

A band travelling across whatever it is placed in, for work of known extent.

Returns an absolutely positioned overlay, so the caller adds it as a child of a relative().overflow_hidden() element and nothing it already draws moves. It paints in color, which callers set to the accent or to the track they are sweeping over.