array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.ps-circle.php', 1 => 'ps_circle', ), 'up' => array ( 0 => 'ref.ps.php', 1 => 'PS 函数', ), 'prev' => array ( 0 => 'function.ps-begin-template.php', 1 => 'ps_begin_template', ), 'next' => array ( 0 => 'function.ps-clip.php', 1 => 'ps_clip', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ps/functions/ps-circle.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ps >= 1.1.0)
ps_circle — Draws a circle
Draws a circle with its middle point at (x
,
y
). The circle starts and ends at position
(x
+radius
,
y
). If this function is called outside a path it
will start a new path. If it is called within a path it will add the circle
as a subpath. If the last drawing operation does not end in point
(x
+radius
,
y
) then there will be a gap in the path.
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