Packagevegas.colors
Classpublic class LightColor
InheritanceLightColor Inheritance Color Inheritance Object

This class is the basic extension of the actionscript Color class to changed light and contrast over a MovieClip.

Example :

     import vegas.colors.LightColor;
     
     var c:LightColor = new LightColor( display ) ; 
     
     c.brightness = 255 ;
     



Public Properties
 PropertyDefined By
  brightness : Number
Indicates the bright between 0 and 100 of the DisplayObject.
LightColor
  brightOffset : Number
Indicates the bright between -255 and 255 of the DisplayObject.
LightColor
 InheritedcolorTransform : ColorTransform
A ColorTransform object containing values that universally adjust the colors in the display object.
Color
  contrast : Number
Indicates the contrast value (percent) of the DisplayObject.
LightColor
 Inheriteddisplay : DisplayObject
[read-only] The DisplayObject reference of this object.
Color
  negative : Number
Indicates the negative value of the DisplayObject.
LightColor
 Inheritedrgb : *
Indicates the R+G+B combination currently in use by the color object.
Color
Public Methods
 MethodDefined By
  
LightColor(display:DisplayObject)
Creates a new LightColor instance.
LightColor
 Inherited
getRGB():Number
Returns the R+G+B combination currently in use by the color object
Color
 Inherited
getTransform():Object
Returns the transform value set by the last setTransform() call.
Color
 Inherited
invert():void
Inverts the color of the specified Color reference in argument.
Color
 Inherited
reset():void
Resets the color of the specified Color reference in argument, the MovieClip display the original view since Color transformation.
Color
 Inherited
setRGB(hex:*):void
Specifies an RGB color for a Color object.
Color
 Inherited
setTransform(transformObject:Object):void
Sets color transform information for a Color object.
Color
 Inherited
toRGBString():String
Returns the string representation of the passed color with ECMAScript formatting (0xrrggbb).
Color
Public Constants
 ConstantDefined By
 InheritedEVALUATOR : ColorEvaluator
[static] The color evaluator singleton reference.
Color
Property Detail
brightnessproperty
brightness:Number

Indicates the bright between 0 and 100 of the DisplayObject.


Implementation
    public function get brightness():Number
    public function set brightness(value:Number):void
brightOffsetproperty 
brightOffset:Number

Indicates the bright between -255 and 255 of the DisplayObject.


Implementation
    public function get brightOffset():Number
    public function set brightOffset(value:Number):void
contrastproperty 
contrast:Number

Indicates the contrast value (percent) of the DisplayObject.


Implementation
    public function get contrast():Number
    public function set contrast(value:Number):void
negativeproperty 
negative:Number

Indicates the negative value of the DisplayObject.


Implementation
    public function get negative():Number
    public function set negative(value:Number):void
Constructor Detail
LightColor()Constructor
public function LightColor(display:DisplayObject)

Creates a new LightColor instance.

Parameters
display:DisplayObject — a DisplayObject reference.