Skip to content

Cannon.Misc.RadialGradient

y-lohse edited this page Jan 6, 2013 · 2 revisions

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.