Function sweep_gradient
pub fn sweep_gradient<'a>(
center: impl Into<Point>,
_: (f32, f32),
gradient: &Gradient<'_>,
local_matrix: impl Into<Option<&'a Matrix>>,
) -> Option<RCHandle<SkShader>>Expand description
Returns a shader that generates a sweep gradient given a center.
The shader accepts negative angles and angles larger than 360, draws between 0 and 360 degrees, similar to the CSS conic-gradient semantics. 0 degrees means horizontal positive x axis. The start angle must be less than the end angle.
centerThe center of the sweepstart_angleStart of the angular range, corresponding to pos == 0end_angleEnd of the angular range, corresponding to pos == 1gradientDescription of the colors and interpolation methodlocal_matrixOptional local matrix