Drwaing Circles?

Thread Solved

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

Drwaing Circles?

 
0
  #1
Nov 5th, 2009
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,677
Reputation: Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future 
Solved Threads: 554
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster
 
0
  #2
Nov 5th, 2009
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: 33
Reputation: jaison2 is an unknown quantity at this point 
Solved Threads: 2
jaison2 jaison2 is offline Offline
Light Poster
 
0
  #3
Nov 5th, 2009
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


Views: 331 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC