OptionalcenterThe center point of the inner circle where the gradient begins. In local coordinates by default (0-1).
OptionalcolorArray of colors stops to use in the gradient
OptionalinnerThe radius of the inner circle where the gradient begins.
OptionalouterThe center point of the outer circle where the gradient ends. In local coordinates by default (0-1).
OptionalouterThe radius of the outer circle where the gradient ends.
OptionalrotationThe rotation of the gradient in radians, useful for making the gradient elliptical. NOTE: Only applied to radial gradients used with Graphics.
OptionalscaleThe y scale of the gradient, use this to make the gradient elliptical. NOTE: Only applied to radial gradients used with Graphics.
OptionaltextureThe 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
OptionaltextureWhether coordinates are 'global' or 'local'
OptionaltypeThe type of gradient. Must be 'radial' for radial gradients.
OptionalwrapThe 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.