(PHP 5 <= 5.3.0, PECL ming SVN)
SWFDisplayItem::multColor — Multiplies the item's color transform
$red
   , float $green
   , float $blue
   [, float $a
  ] )Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.
swfdisplayitem::multcolor() multiplies the item's color transform by the given values.
The object may be a swfshape(), a swfbutton(), a swftext() or a swfsprite() object. It must have been added using the swfmovie::add().
These parameters are floats between 0.0 and 1.0:
redValue of red component
greenValue of green component
blueValue of blue component
aValue of alpha component
Эта функция не возвращает значения после выполнения.
This simple example will modify your picture's atmosphere to Halloween (use a landscape or bright picture).
Пример #1 swfdisplayitem::multcolor() example
<?php
$b = new SWFBitmap(file_get_contents("backyard.jpg"));
// note use your own picture :-)
$s = new SWFShape();
$s->setRightFill($s->addFill($b));
$s->drawLine($b->getWidth(), 0);
$s->drawLine(0, $b->getHeight());
$s->drawLine(-$b->getWidth(), 0);
$s->drawLine(0, -$b->getHeight());
$m = new SWFMovie();
$m->setDimension($b->getWidth(), $b->getHeight());
$i = $m->add($s);
for ($n=0; $n<=20; ++$n) {
  $i->multColor(1.0-$n/10, 1.0, 1.0);
  $i->addColor(0xff*$n/20, 0, 0);
  $m->nextFrame();
}
header('Content-type: application/x-shockwave-flash');
$m->output();
?>