Module shaders

Module shaders 

Source
Expand description

Shader factory functions that accept Gradient parameters.

These functions correspond to the C++ SkShaders namespace gradient functions.

Functionsยง

linear_gradient
Returns a shader that generates a linear gradient between the two specified points.
radial_gradient
Returns a shader that generates a radial gradient given the center and radius.
sweep_gradient
Returns a shader that generates a sweep gradient given a center.
two_point_conical_gradient
Returns a shader that generates a conical gradient given two circles.