| Package | com.kraftner.geom |
| Class | public class StaticPalette |
| Inheritance | StaticPalette Palette |
See also
| Method | Defined by | ||
|---|---|---|---|
|
Add a Color to this Palette
| StaticPalette | ||
|
Add a number of Colors representing a Gradient to this palette.
| StaticPalette | ||
![]() |
Returns a Color Object representing the average color of this Palette
| Palette | |
![]() |
Returns a copy of this Palette
| Palette | |
![]() |
Returns the current Color of this Palette.
| Palette | |
|
fillWithHex(hex:Array):void
Adds a number of Colors stored in HEX format in an Array
| StaticPalette | ||
![]() |
Returns the color at a certain position of this Palette.
| Palette | |
![]() |
Returns the next Color of this Palette.
| Palette | |
![]() |
Returns the previous Color of this Palette.
| Palette | |
![]() |
sortByBlue():void
Sorts the Colors of this Palette by the blue part of the contained Colors.
| Palette | |
![]() |
sortByBrightness():void
Sorts the Colors of this Palette by the brightness of the contained Colors.
| Palette | |
![]() |
sortByGreen():void
Sorts the Colors of this Palette by the green part of the contained Colors.
| Palette | |
![]() |
sortByHEX():void
Sorts the Colors of this Palette by the HEX value of the contained Colors.
| Palette | |
![]() |
sortByHue():void
Sorts the Colors of this Palette by the Hue of the contained Colors
| Palette | |
![]() |
sortByLightness():void
Sorts the Colors of this Palette by the lightness (as set by the HSL Colorsystem) of the contained Colors.
| Palette | |
![]() |
sortByProximity(color:Color):void
Sorts the Colors of this Palette by the proximity of the contained Colors to a certain Color
| Palette | |
![]() |
sortByRed():void
Sorts the Colors of this Palette by the red part of the contained Colors.
| Palette | |
![]() |
sortBySaturationHSL():void
Sorts the Colors of this Palette by the saturation (as set by the HSL Colorsystem) of the contained Colors.
| Palette | |
![]() |
sortBySaturationHSV():void
Sorts the Colors of this Palette by the saturation (as set by the HSV Colorsystem) of the contained Colors.
| Palette | |
![]() |
sortByValue():void
Sorts the Colors of this Palette by the value (as set by the HSV Colorsystem) of the contained Colors.
| Palette | |
| addColor | () | method |
public function addColor(c:Color):voidAdd a Color to this Palette
Parametersc:Color — Color to add to this Palette
|
See also
| addGradient | () | method |
public function addGradient(start:Color, end:Color, steps:uint = 10):voidAdd a number of Colors representing a Gradient to this palette.
Parametersstart:Color — Color to start the gradient with
|
|
end:Color — Color to end the gradient with
|
|
steps:uint (default = 10) — number of Colors the Gradient consists of
|
| fillWithHex | () | method |
public function fillWithHex(hex:Array):voidAdds a number of Colors stored in HEX format in an Array
Parametershex:Array — Array containing HEX values
|