Ming Line Codes
Enter your parameters and then select and copy codes.
Choose Line Style:
Horizontal:
Vertical:
Diagonal:
Thickness:
Red:
Green:
Blue:
Alpha:
Length:
Pixel x:
Pixel y:
then copy
$myMovie = new SWFMovie(); $myMovie->setBackground(0x00, 0x00, 0x00); $myMovie->setDimension(450, 450); $s = new SWFShape(); //$s->setLine(thickness, red, green, blue, alpha); $s->setLine(0,0,0,0,0); $s->drawLine(0,0); $firstLine=$myMovie->add($s); $firstLine->moveTo(0,0); /* HORIZONTAL LINE: Y=0 $s->drawLine(0,0); VERTICAL LINE: X=0 $s->drawLine(0,0); DIAGONAL LINE: NEGATIVE Y ROTATES COUNTERCLOCKWISE; POSITIVE Y ROTATES CLOCKWISE $s->drawLine(0,-0); */ header('Content-type: application/x-shockwave-flash'); $myMovie->output(); ?>
Back to Functions