Packageorg.aswing.plaf
Classpublic class ASColorUIResource
InheritanceASColorUIResource Inheritance ASColor
ImplementsUIResource

Color UI Resource.



Protected Properties
 PropertyDefined by
 Inheritedalpha : Number
ASColor
 Inheritedhue : Number
ASColor
 Inheritedluminance : Number
ASColor
 Inheritedrgb : uint
ASColor
 Inheritedsaturation : Number
ASColor
Public Methods
 MethodDefined by
  
ASColorUIResource(color:uint = 0x000000, alpha:Number = 1)
ASColorUIResource
 Inherited
brighter(factor:Number = 0.7):ASColor
Creates a new ASColor that is a brighter version of this ASColor.
ASColor
 Inherited
changeAlpha(newAlpha:Number):ASColor
Create a new ASColor with another alpha but same rgb.
ASColor
 Inherited
changeHue(newHue:Number):ASColor
Create a new ASColor with just change hue channel value.
ASColor
 Inherited
changeLuminance(newLuminance:Number):ASColor
Create a new ASColor with just change luminance channel value.
ASColor
 Inherited
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
 Inherited
darker(factor:Number = 0.7):ASColor
Creates a new ASColor that is a darker version of this ASColor.
ASColor
 Inherited
equals(o:Object):Boolean
Compare if compareTo object has the same value as this ASColor object does
ASColor
 Inherited
getAlpha():Number
Returns the alpha component in the range 0-1.
ASColor
 Inherited
getARGB():uint
Returns the ARGB value representing the color.
ASColor
 Inherited
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
 Inherited
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
 Inherited
getBlue():uint
Returns the blue component in the range 0-255.
ASColor
 Inherited
getGreen():uint
Returns the green component in the range 0-255.
ASColor
 Inherited
getHue():Number
Returns the hue component in the range [0, 1].
ASColor
 Inherited
getLuminance():Number
Returns the luminance component in the range [0, 1].
ASColor
 Inherited
getRed():uint
Returns the red component in the range 0-255.
ASColor
 Inherited
getRGB():uint
Returns the RGB value representing the color.
ASColor
 Inherited
getRGBWith(rr:uint, gg:uint, bb:uint):uint
[static] Returns the RGB value representing the red, green, and blue values.
ASColor
 Inherited
getSaturation():Number
Returns the saturation component in the range [0, 1].
ASColor
 Inherited
getWithARGB(argb:uint):ASColor
[static] Returns a ASColor with specified ARGB uint value.
ASColor
 Inherited
toString():String
ASColor
Public Constants
 ConstantDefined by
 InheritedBLACK : ASColor
[static]
ASColor
 InheritedBLUE : ASColor
[static]
ASColor
 InheritedCYAN : ASColor
[static]
ASColor
 InheritedDARK_GRAY : ASColor
[static]
ASColor
 InheritedGRAY : ASColor
[static]
ASColor
 InheritedGREEN : ASColor
[static]
ASColor
 InheritedHALO_BLUE : ASColor
[static]
ASColor
 InheritedHALO_GREEN : ASColor
[static]
ASColor
 InheritedHALO_ORANGE : ASColor
[static]
ASColor
 InheritedLIGHT_GRAY : ASColor
[static]
ASColor
 InheritedMAGENTA : ASColor
[static]
ASColor
 InheritedORANGE : ASColor
[static]
ASColor
 InheritedPINK : ASColor
[static]
ASColor
 InheritedRED : ASColor
[static]
ASColor
 InheritedWHITE : ASColor
[static]
ASColor
 InheritedYELLOW : ASColor
[static]
ASColor
Constructor detail
ASColorUIResource()constructor
public function ASColorUIResource(color:uint = 0x000000, alpha:Number = 1)Parameters
color:uint (default = 0x000000)
 
alpha:Number (default = 1)
Method detail
createResourceColor()method
public static function createResourceColor(color:ASColor):ASColorUIResource

Create a color ui resource with a color.

Parameters
color:ASColor

Returns
ASColorUIResource