Function radial_gradient
pub fn radial_gradient<'a>(
_: (impl Into<Point>, f32),
gradient: &Gradient<'_>,
local_matrix: impl Into<Option<&'a Matrix>>,
) -> Option<RCHandle<SkShader>>Available on crate feature
engine only.Expand description
Returns a shader that generates a radial gradient given the center and radius.
center: The center of the circle for this gradientradius: Must be positive. The radius of the circle for this gradientgradient: Description of the colors and interpolation methodlocal_matrix: Optional local matrix