
|
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7">SWFDisplayItem->multColor (no version information, might be only in CVS) SWFDisplayItem->multColor -- アイテムã®è‰²å¤‰æ›ã‚’ä¹—ç®—ã™ã‚‹ 説明void swfdisplayitem->multcolor ( [int red [, int green [, int blue [, int 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().
This simple example will modify your picture's atmospher
to Halloween (use a landscape or bright picture).
例 1swfdisplayitem->multcolor() example <?php
$b = new SWFBitmap("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();
?> |
|
|