array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.ps-arc.php', 1 => 'ps_arc', ), 'up' => array ( 0 => 'ref.ps.php', 1 => 'PS 函数', ), 'prev' => array ( 0 => 'function.ps-add-weblink.php', 1 => 'ps_add_weblink', ), 'next' => array ( 0 => 'function.ps-arcn.php', 1 => 'ps_arcn', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ps/functions/ps-arc.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ps >= 1.1.0)
ps_arc — Draws an arc counterclockwise
Draws a portion of a circle with at middle point at
(x
, y
). The arc starts at an
angle of alpha
and ends at an angle of
beta
. It is drawn counterclockwise (use
ps_arcn() to draw clockwise). The subpath added
to the current path starts on the arc at angle alpha
and ends on the arc at angle beta
.
psdoc
Resource identifier of the postscript file as returned by ps_new().
x
The x-coordinate of the circle's middle point.
y
The y-coordinate of the circle's middle point.
radius
The radius of the circle
alpha
The start angle given in degrees.
beta
The end angle given in degrees.