Skip to main content

conic_gradient

Function conic_gradient 

Source
pub fn conic_gradient(
    center_x: f32,
    center_y: f32,
    angle_offset: f32,
    stops: &[LinearColorStop],
) -> Background
Expand description

Creates a conic (sweep) gradient background.

center is the center point of the gradient in normalized coordinates (0.0 to 1.0). angle_offset is the starting angle offset in degrees. Supports up to 4 color stops.