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 Quote 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 Quote 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:) Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.