Public Methods
 FunctionDefined 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
Function detail
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.

Returns
*
interpolateColors()function 
public function interpolateColors(color1:uint, color2:uint, ratio:Number):uint

This 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.

Returns
uint — The color created.