Paint~ RadialGradient

A radial gradient

Constructor

new RadialGradient()

Creates a new radial gradient
Example
// Create a new gradient that goes from red to blue
let gradient = new RadialGradient();
gradient.addColorStop(0, Color.Red);
gradient.addColorStop(1, Color.Blue);

Extends

  • Gradient

Methods

getColorAt(fillStart, point, fillEnd) → {Color}

Gets the color for a point in the gradient
Parameters:
NameTypeDescription
fillStartPointThe start point of the fill
pointPointThe point to get the color for
fillEndPointThe end point of the fill
Returns:
Type: 
Color