Drwaing Circles?

Thread Solved

Join Date: Nov 2009
Posts: 28
Reputation: jaison2 is an unknown quantity at this point 
Solved Threads: 1
jaison2 jaison2 is offline Offline
Light Poster

Drwaing Circles?

 
0
  #1
22 Days Ago
hi, i want to be able to draw two eyes with are exactly the same in radius and colour etc next to eachother. So when i open the window the pair of eyes are there in the centre. I have managed to get one eye but i dnt have a clue to how to get one beside it, i am not sure hw to.. here is my code for the first eye and function should be calling the drawCircle six times.
please help
  1. from graphics import *
  2. import math
  3. def drawCircle(win, centre, radius, colour):
  4. circle = Circle(centre, radius)
  5. circle.setFill(colour)
  6. circle.setWidth(2)
  7. circle.draw(win)
  8.  
  9. def drawTarget():
  10. win = GraphWin()
  11. centre = Point(100,100)
  12. drawCircle(win, centre, 40, "white")
  13. drawCircle(win, centre, 20, "blue")
  14. drawCircle(win, centre, 10, "black")
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,438
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster
 
0
  #2
22 Days Ago
That isn't Java code. Perhaps you meant to post this in another forum?
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 28
Reputation: jaison2 is an unknown quantity at this point 
Solved Threads: 1
jaison2 jaison2 is offline Offline
Light Poster
 
0
  #3
22 Days Ago
yep.. sorry guys.. this is python.. sorry for wasting ur time...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC