Packagecom.kraftner.geom
Classpublic class DynamicPaletteRandom
InheritanceDynamicPaletteRandom Inheritance Palette

Palette of totally randomly mixed Colors



Public Properties
 PropertyDefined by
 Inheritedlength : uint
Number of Colors on this Palette
Palette
Protected Properties
 PropertyDefined by
 Inheritedpalette : Vector
Holds the Color Objects of this palette.
Palette
Public Methods
 MethodDefined by
  
DynamicPaletteRandom(randomize_red:Boolean = true, randomize_green:Boolean = true, randomize_blue:Boolean = true, randomize_alpha:Boolean = false, fillWith:Number = 0)
Constructor method.
DynamicPaletteRandom
 Inherited
Returns a Color Object representing the average color of this Palette
Palette
 Inherited
Returns a copy of this Palette
Palette
 Inherited
Returns the current Color of this Palette.
Palette
 Inherited
getIndex(index:uint, movePointer:Boolean = true):Color
Returns the color at a certain position of this Palette.
Palette
 Inherited
Returns the next Color of this Palette.
Palette
 Inherited
Returns the previous Color of this Palette.
Palette
 Inherited
sortByBlue():void
Sorts the Colors of this Palette by the blue part of the contained Colors.
Palette
 Inherited
Sorts the Colors of this Palette by the brightness of the contained Colors.
Palette
 Inherited
sortByGreen():void
Sorts the Colors of this Palette by the green part of the contained Colors.
Palette
 Inherited
sortByHEX():void
Sorts the Colors of this Palette by the HEX value of the contained Colors.
Palette
 Inherited
sortByHue():void
Sorts the Colors of this Palette by the Hue of the contained Colors
Palette
 Inherited
Sorts the Colors of this Palette by the lightness (as set by the HSL Colorsystem) of the contained Colors.
Palette
 Inherited
sortByProximity(color:Color):void
Sorts the Colors of this Palette by the proximity of the contained Colors to a certain Color
Palette
 Inherited
sortByRed():void
Sorts the Colors of this Palette by the red part of the contained Colors.
Palette
 Inherited
Sorts the Colors of this Palette by the saturation (as set by the HSL Colorsystem) of the contained Colors.
Palette
 Inherited
Sorts the Colors of this Palette by the saturation (as set by the HSV Colorsystem) of the contained Colors.
Palette
 Inherited
sortByValue():void
Sorts the Colors of this Palette by the value (as set by the HSV Colorsystem) of the contained Colors.
Palette
Protected Methods
 MethodDefined by
 Inherited
extend(index:uint):void
Defines the rule by which a Palette extends itself when the end is reached.
Palette
Constructor detail
DynamicPaletteRandom()constructor
public function DynamicPaletteRandom(randomize_red:Boolean = true, randomize_green:Boolean = true, randomize_blue:Boolean = true, randomize_alpha:Boolean = false, fillWith:Number = 0)

Constructor method. You can select which parts of the RGBA color should be randomized

Parameters
randomize_red:Boolean (default = true)
 
randomize_green:Boolean (default = true)
 
randomize_blue:Boolean (default = true)
 
randomize_alpha:Boolean (default = false)
 
fillWith:Number (default = 0) — precalculate a certain number of Colors