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.