Home > PHP > Function > > SWFShape->drawCurveTo()

SWFShape->drawCurveTo()

SWFShape->drawCurveTo - Draws a curve

Syntax

int SWFShape->drawCurveTo (float $controlx, float $controly, float $anchorx, float $anchory, float $targetx, float $targety)

Arguments

  • controlx - Number of seconds to skip.
  • controly - Number of seconds to skip.
  • anchorx - Number of seconds to skip.
  • anchory - Number of seconds to skip.
  • targetx - Number of seconds to skip.
  • targety - Number of seconds to skip.

Description

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

Version

PHP 4.0.5

Return value