Optional
centerThe center point of the inner circle where the gradient begins. In local coordinates by default (0-1).
Optional
colorArray of colors stops to use in the gradient
Optional
innerThe radius of the inner circle where the gradient begins.
Optional
outerThe center point of the outer circle where the gradient ends. In local coordinates by default (0-1).
Optional
outerThe radius of the outer circle where the gradient ends.
Optional
rotationThe rotation of the gradient in radians, useful for making the gradient elliptical. NOTE: Only applied to radial gradients used with Graphics.
Optional
scaleThe y scale of the gradient, use this to make the gradient elliptical. NOTE: Only applied to radial gradients used with Graphics.
Optional
textureThe size of the texture to use for the gradient - this is for advanced usage. The texture size does not need to match the size of the object being drawn. Due to GPU interpolation, gradient textures can be relatively small! Consider using a larger texture size if your gradient has a lot of very tight color steps
Optional
textureWhether coordinates are 'global' or 'local'
Optional
typeThe type of gradient. Must be 'radial' for radial gradients.
Optional
wrapThe wrap mode of the gradient. This can be 'clamp-to-edge' or 'repeat'.
Options specific to radial gradients. A radial gradient creates a smooth transition between colors that radiates outward in a circular pattern. The gradient is defined by inner and outer circles, each with their own radius.