Radial

data 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

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

Throws

if innerRadius1 is larger than outerRadius2

Constructors

Link copied to clipboard
constructor(innerRadius: Float, outerRadius: Float, centerX: Float = -1f, centerY: Float = -1f)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard