GoLang SWFShape::__construct

request it (291)
GoLang replacement for PHP's SWFShape::__construct [edit | history]



Do you know a GoLang replacement for PHP's SWFShape::__construct? Write it!

PHP SWFShape::__construct

PHP original manual for SWFShape::__construct [ show | php.net ]

SWFShape::__construct

(PHP 5 < 5.3.0, PECL ming SVN)

SWFShape::__constructCreates a new shape object

Description

SWFShape::__construct ( void )
Warning

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.

Created a new SWFShape object.

Examples

This simple example will draw a big red elliptic quadrant.

Example #1 swfshape() example

<?php
$s 
= new SWFShape();
$s->setLine(400x7f00);
$s->setRightFill($s->addFill(0xff00));
$s->movePenTo(200200);
$s->drawLineTo(6200200);
$s->drawLineTo(62004600);
$s->drawCurveTo(2004600200200);

$m = new SWFMovie();
$m->setDimension(64004800);
$m->setRate(12.0);
$m->add($s);
$m->nextFrame();

header('Content-type: application/x-shockwave-flash');
$m->output();
?>