makeSweepGradient
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, otherwise a null pointer is returned. If color stops do not contain 0 and 1 but are within this range, the respective outer color stop is repeated for 0 and 1. Color stops less than 0 are clamped to 0, and greater than 1 are clamped to 1.
Parameters
The center of the sweep
Description of the colors and interpolation method
Optional local matrix, may be null
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, otherwise a null pointer is returned. If color stops do not contain 0 and 1 but are within this range, the respective outer color stop is repeated for 0 and 1. Color stops less than 0 are clamped to 0, and greater than 1 are clamped to 1.
Parameters
The center of the sweep
Start of the angular range, corresponding to pos == 0.
End of the angular range, corresponding to pos == 1.
Description of the colors and interpolation method
Optional local matrix, may be null