Skip to main content

radial_gradient

Function radial_gradient 

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

Creates a radial gradient background.

center is the center point of the gradient in normalized coordinates (0.0 to 1.0). radius is the radius of the gradient in normalized coordinates (0.0 to 1.0). Supports up to 4 color stops.