Function radial_gradient
pub fn radial_gradient<'a>(
_: (impl Into<Point>, f32),
gradient: &Gradient<'_>,
local_matrix: impl Into<Option<&'a Matrix>>,
) -> Option<RCHandle<SkShader>>Expand description
Returns a shader that generates a radial gradient given the center and radius.
centerThe center of the circle for this gradientradiusMust be positive. The radius of the circle for this gradientgradientDescription of the colors and interpolation methodlocal_matrixOptional local matrix