note 38800 added to function.imagefilledarc

From: Date: Wed, 07 Jan 2004 13:11:07 +0000
Subject: note 38800 added to function.imagefilledarc
Groups: php.notes 
Request: Send a blank email to php-notes+get-63067@lists.php.net to get a copy of this message
if you want to place a text onto the edge of a circle you need to get a point on the circle: $pos_x=$radius*sin(deg2rad($angle)); $pos_y=sqrt($radius*$radius-$pos_x*$pos_x); if you want the point to be in the middle of a pie piece you need a starting and ending angle $pos_x=$radius*sin(deg2rad($angle_end-($angle_start)/2)); $pos_y=sqrt($radius*$radius-$pos_x*$pos_x); hope it helps ---- Manual Page -- http://www.php.net/manual/en/function.imagefilledarc.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38800 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38800&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38800&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63067) next »