iced_renderer::geometry::gradient

Function pack

pub fn pack(gradient: &Gradient, bounds: Rectangle) -> Packed
Available on crate feature geometry only.
Expand description

Creates a new Packed gradient for use in shader code.