You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RadialGradient extends Gradient and inherits all its properties and functions. Only additional properties and functions are described here.
Properties
center:Cannon.Math.Point2D
The gradients center, equal {0,0}
size:Float
The gradients size.
Functions
__construct:RadialGradient
Parameters
size:Float
Description
Creates a new, simple radial gradient. The color stop at offset 0 will be in the center, and further offets will expand from the center towards all direction in a regular fashion.