Name: clearRGB() - clears any color set by setRGB (or setTransform)
Author: senocular: www.senocular.com
Date: 1899-12-31T00:33:15.300
Documentation:
Color CLEARRGB: Removes a Color Object set color
colorObjectInstance.clearRGB();
Arguments:
- None
Returns:
- Nothing
Example:
myCol = new Color(clipA);
clipA.onPress = function(){
// turn red
myCol.setRGB(0xff0000);
}
clipA.onRelease = clipA.onReleaseOutside = function(){
// restore to original coloring
myCol.clearRGB();
}
1
2
3
Color.prototype.clearRGB = function(){
this.setTransform({ra:100, rb:0,ga:100,gb:0,ba:100,bb:0,aa:100,ab:0});
}