| Package | org.aswing.plaf |
| Class | public class ASColorUIResource |
| Inheritance | ASColorUIResource ASColor |
| Implements | UIResource |
| Method | Defined by | ||
|---|---|---|---|
|
ASColorUIResource(color:uint = 0x000000, alpha:Number = 1)
| ASColorUIResource | ||
![]() |
Creates a new
ASColor that is a brighter version of this
ASColor. | ASColor | |
![]() |
changeAlpha(newAlpha:Number):ASColor
Create a new
ASColor with another alpha but same rgb. | ASColor | |
![]() |
Create a new
ASColor with just change hue channel value. | ASColor | |
![]() |
changeLuminance(newLuminance:Number):ASColor
Create a new
ASColor with just change luminance channel value. | ASColor | |
![]() |
changeSaturation(newSaturation:Number):ASColor
Create a new
ASColor with just change saturation channel value. | ASColor | |
|
[static]
Create a color ui resource with a color.
| ASColorUIResource | ||
![]() |
Creates a new
ASColor that is a darker version of this
ASColor. | ASColor | |
![]() |
equals(o:Object):Boolean
Compare if compareTo object has the same value as this ASColor object does
| ASColor | |
![]() |
getAlpha():Number
Returns the alpha component in the range 0-1.
| ASColor | |
![]() |
getARGB():uint
Returns the ARGB value representing the color.
| ASColor | |
![]() |
getASColor(r:uint, g:uint, b:uint, a:Number = 1):ASColor
[static]
Returns a ASColor with the specified red, green, blue values in the range [0 - 255]
and alpha value in range[0, 1].
| ASColor | |
![]() |
getASColorWithHLS(h:Number, l:Number, s:Number, a:Number = 1):ASColor
[static]
Returns a ASColor with with the specified hue, luminance,
saturation and alpha values in the range [0 - 1].
| ASColor | |
![]() |
getBlue():uint
Returns the blue component in the range 0-255.
| ASColor | |
![]() |
getGreen():uint
Returns the green component in the range 0-255.
| ASColor | |
![]() |
getHue():Number
Returns the hue component in the range [0, 1].
| ASColor | |
![]() |
getLuminance():Number
Returns the luminance component in the range [0, 1].
| ASColor | |
![]() |
getRed():uint
Returns the red component in the range 0-255.
| ASColor | |
![]() |
getRGB():uint
Returns the RGB value representing the color.
| ASColor | |
![]() |
getRGBWith(rr:uint, gg:uint, bb:uint):uint
[static]
Returns the RGB value representing the red, green, and blue values.
| ASColor | |
![]() |
getSaturation():Number
Returns the saturation component in the range [0, 1].
| ASColor | |
![]() |
getWithARGB(argb:uint):ASColor
[static]
Returns a ASColor with specified ARGB uint value.
| ASColor | |
![]() |
toString():String
| ASColor | |
| ASColorUIResource | () | constructor |
public function ASColorUIResource(color:uint = 0x000000, alpha:Number = 1)Parameters
color:uint (default = 0x000000) |
|
alpha:Number (default = 1) |
| createResourceColor | () | method |
public static function createResourceColor(color:ASColor):ASColorUIResourceCreate a color ui resource with a color.
Parameterscolor:ASColor |
ASColorUIResource |