SWF::CXform3pm
Swf cxform class
Usage
use SWF::CXform;$cxf = new SWF::CXform();$cxf->setColorAdd(100, 200, 30.5 , -50);$dispitem->setCXform($cxf);
Overview
SWF::CXform is a helper class useful for color transformations on SWF::DisplayItem objects.
Methods
- new SWF::CXform( [ $rAdd ], [ $gAdd ], [ $bAdd ], [ $aAdd ], [ $rMult ], [ $gMult ], [ $bMult ], [$aMult] )
-
Creates a CXform object. The object is controlled by a parameter list of RGBA values both for addition and multiplication. All of them are optional, but could be set later via setColorAdd() and setColorMult() methods. Default values for the xAdd parameters are 0, and for xMult defaults are 1. Use the created object as parameter for transformations on SWF::DisplayItem objects.
- setColorAdd($rAdd, $gAdd, $bAdd, $aAdd)
-
Set addition values of a CXform object.
- setColorMult($rMult, $gMult, $bMult, $aMult)
-
Set multiplication values of a CXform object.
Releases
2 releases since Debian 6.0 (Squeeze); the text changed 1 time.