Package | com.desuade.utils |
Class | public class RandomColor |
Inheritance | RandomColor ![]() ![]() |
Language Version : | ActionScript 3 |
Since : | 18.04.2009 |
Runtime Versions : | AIR 1.0, Flash Player 9.0.0 |
See also
Method | Defined By | ||
---|---|---|---|
RandomColor(min:*, max:*)
This creates a RandomColor object than can be used over again for creating new random colors from the same range. | RandomColor | ||
fromRange(min:*, max:*):uint [static]
This static function is used to return a random color from a given range. | RandomColor | ||
![]() | toString():String
This returns a new random value within the range each time the Random object is read. | Random | |
![]() | valueOf():Number
This returns a new random value within the range each time the Random object is read. | Random |
RandomColor | () | Constructor |
public function RandomColor(min:*, max:*)
This creates a RandomColor object than can be used over again for creating new random colors from the same range. Can be used with the ColorTween classes, as well as any other properties requiring a Color.
Parametersmin:* — The first color in the range
| |
max:* — The second color in the range
|
See also
fromRange | () | method |
public static function fromRange(min:*, max:*):uint
This static function is used to return a random color from a given range.
Parameters
min:* — The first color in the range
| |
max:* — The second color in the range
|
uint |
See also