| Function | Defined By | ||
|---|---|---|---|
construct(type:Class, parameters:Array):*
This function is used to construct an object from the class and an array of parameters. | org.flintparticles.common.utils | ||
interpolateColors(color1:uint, color2:uint, ratio:Number):uint
This function is used to find a color between two other colors. | org.flintparticles.common.utils | ||
| construct | () | function |
public function construct(type:Class, parameters:Array):*This function is used to construct an object from the class and an array of parameters.
Parameters
type:Class — The class to construct.
| |
parameters:Array — An array of up to ten parameters to pass to the constructor.
|
* |
| interpolateColors | () | function |
public function interpolateColors(color1:uint, color2:uint, ratio:Number):uintThis function is used to find a color between two other colors.
Parameters
color1:uint — The first color.
| |
color2:uint — The second color.
| |
ratio:Number — The proportion of the first color to use. The rest of the color
is made from the second color.
|
uint — The color created.
|