HoTDaWg Posted May 5, 2007 Share Posted May 5, 2007 hey guys, For an extra credit assignment in math class, I asked my teacher if I could get extra marks if i make a script which does this: (based upon our current unit in class(pi, circumference, radius, and diameter)) a script which asks the user to type in either a circumference, a radius, and a diameter. and based upon that generates an image which makes that circle. of course, getting the correct measurements (like if the radius is 12 cm) are impossible but...is this idea achieveable? or am I not walking in baby feet? thanks HoTDaWg Link to comment https://forums.phpfreaks.com/topic/50178-solved-extra-credit-assignmentcircles-with-the-gd-library-is-it-possible/ Share on other sites More sharing options...
Barand Posted May 5, 2007 Share Posted May 5, 2007 Well, imageellipse($im,$cx,$cy,2*$r,2*$r,$color); draws a circle, centre at $cx, $cy with radius $r Link to comment https://forums.phpfreaks.com/topic/50178-solved-extra-credit-assignmentcircles-with-the-gd-library-is-it-possible/#findComment-246379 Share on other sites More sharing options...
HoTDaWg Posted May 6, 2007 Author Share Posted May 6, 2007 thank you:) Link to comment https://forums.phpfreaks.com/topic/50178-solved-extra-credit-assignmentcircles-with-the-gd-library-is-it-possible/#findComment-246391 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.