FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    interpolate_brush

    function · ferroui-livecharts · v0.5.0

    fn interpolate_brush(from: &std::rc::Rc<dyn IBrush>, to: &std::rc::Rc<dyn IBrush>, progress: f64) -> Option<std::rc::Rc<dyn IBrush>>
    

    Interpolates native paint values with the source encoded-channel arithmetic. A different gradient stop count snaps that property to its target while compatible spatial properties continue moving. Unsupported kind changes return None, allowing the scene host to crossfade the two primitives.

    View source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.