Radial
class Radial @JvmOverloads constructor(val innerRadius: Float, val outerRadius: Float, val centerX: Float = -1f, val centerY: Float = -1f) : PolyColor.Gradient.Type
Radial gradient.
Note that if your radii are very close together, you may just get a circle in a box.
Parameters
inner Radius
how much of the shape should be filled entirely with color1
outer Radius
how much of the shape should be filled entirely with color2
center X
the center of the gradient, in the x-axis. if it is -1, it will be the center of the shape
center Y
the center of the gradient, in the y-axis. if it is -1, it will be the center of the shape
Throws
if innerRadius1 is larger than outerRadius2