downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<SWFShape->drawCubicTo()SWFShape->drawCurveTo()>
Last updated: Thu, 26 Jun 2008

SWFShape->drawCurve()

(PHP 4 >= 4.0.5)

SWFShape->drawCurve() — Draws a curve (relative)

Description

SWFShape
int drawCurve ( int $controldx , int $controldy , int $anchordx , int $anchordy [, int $targetdx ], int $targetdy )
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.

swfshape->drawcurve() draws a quadratic curve (using the current line style,set by swfshape->setline()) from the current pen position to the relative position (anchorx ,anchory ) using relative control point (controlx ,controly ). That is, head towards the control point, then smoothly turn to the anchor point.

With 6 parameters, it draws a cubic bezier to point (x+targetdx , x+targetdy ) with control points (x+controldx , y+controldy ) and (x+anchordx , y+anchordy ).



add a noteadd a note User Contributed Notes
Draws a curve (relative)
There are no user contributed notes for this page.




<SWFShape->drawCubicTo()SWFShape->drawCurveTo()>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs