Radial

constructor(innerRadius: Float, outerRadius: Float, centerX: Float = -1f, centerY: Float = -1f)

Parameters

innerRadius

how much of the shape should be filled entirely with color1

outerRadius

how much of the shape should be filled entirely with color2

centerX

the center of the gradient, in the x-axis. if it is -1, it will be the center of the shape

centerY

the center of the gradient, in the y-axis. if it is -1, it will be the center of the shape