Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

swf_lookat(3) [php man page]

SWF_LOOKAT(3)								 1							     SWF_LOOKAT(3)

swf_lookat - Define a viewing transformation

SYNOPSIS
void swf_lookat (float $view_x, float $view_y, float $view_z, float $reference_x, float $reference_y, float $reference_z, float $twist) DESCRIPTION
Defines a viewing transformation by giving the viewing position and the coordinates of a reference point in the scene. PARAMETERS
o $view_x - x-coordinate for the viewing position o $view_y - y-coordinate for the viewing position o $view_z - z-coordinate for the viewing position o $reference_x - x-coordinate for the reference point o $reference_y - y-coordinate for the reference point o $reference_z - z-coordinate for the reference point o $twist - Controls the rotation along with viewer's z axis. RETURN VALUES
No value is returned. EXAMPLES
Example #1 A simple 3D-rotation around a text <?php header('Content-type: application/x-shockwave-flash'); swf_openfile("php://stdout", 320, 200, 25, 1, 1, 1); swf_ortho(-100, 100, -100, 100, -100, 100); // create 3D coordinates swf_definefont(0, "Pix3"); swf_addcolor(0, 0, 0, 1); swf_fontsize(10); swf_fonttracking(0.2); for ($i = 0; $i < 628; $i += 8) { $j = $i / 100; swf_pushmatrix(); swf_translate(0, 0, 0); swf_perspective(100, 1, 0, 10); swf_lookat(sin($j) * 60, 50, cos($j) * 60, 0, 0, 0, 0); swf_definetext (1, 'HotKey@', 0); swf_translate(-50,0,0); swf_placeobject(1,10); swf_definetext(2, 'example.com', 0); swf_translate(55, 0, 0); swf_placeobject(2, 11); swf_showframe(); swf_removeobject(10); swf_removeobject(11); swf_popmatrix(); } swf_closefile(); ?> PHP Documentation Group SWF_LOOKAT(3)

Check Out this Related Man Page

CAIRO_CURVE_TO(3)							 1							 CAIRO_CURVE_TO(3)

CairoContext::curveTo - Adds a curve

       Object oriented style (method):

SYNOPSIS
public void CairoContext::curveTo (float $x1, float $y1, float $x2, float $y2, float $x3, float $y3) DESCRIPTION
Procedural style: void cairo_curve_to (CairoContext $context, float $x1, float $y1, float $x2, float $y2, float $x3, float $y3) Adds a cubic Bezier spline to the path from the current point to position $x3 ,$y3 in user-space coordinates, using $x1, $y1 and $x2, $y2 as the control points. After this call the current point will be $x3, $y3. If there is no current point before the call to CairoContext::curveTo this function will behave as if preceded by a call to CairoCon- text::moveTo ($x1, $y1). PARAMETERS
o $context - A valid CairoContext object created with CairoContext::__construct or cairo_create(3) o $x1 - First control point in the x axis for the curve o $y1 - First control point in the y axis for the curve o $x2 - Second control point in x axis for the curve o $y2 - Second control point in y axis for the curve o $x3 - Final point in the x axis for the curve o $y3 - Final point in the y axis for the curve RETURN VALUES
No value is returned. EXAMPLES
Example #1 Object oriented style <?php $s = new CairoImageSurface(CairoFormat::ARGB32, 100, 100); $c = new CairoContext($s); $c->setSourceRgb(0, 0, 0); $c->paint(); $c->moveTo(10, 50); $c->setLineWidth(5); $c->setSourceRgb(.1, 0, 1); $c->curveTo(20, 80, 80, 20, 90, 50); $c->stroke(); $s->writeToPng(dirname(__FILE__) . '/curveTo.png'); ?> Example #2 Procedural style <?php $s = cairo_image_surface_create(CAIRO_SURFACE_TYPE_IMAGE, 100, 100); $c = cairo_create($s); cairo_set_source_rgb($c, 0, 0, 0); cairo_paint($c); cairo_move_to($c, 10, 50); cairo_set_line_width($c, 5); cairo_set_source_rgb($c, .1, 0, 1); cairo_curve_to($c, 20, 80, 80, 20, 90, 50); cairo_stroke($c); cairo_surface_write_to_png($s, dirname(__FILE__) . '/curve_to.png'); ?> SEE ALSO
CairoContext::moveTo. PHP Documentation Group CAIRO_CURVE_TO(3)
Man Page