| | |
Drwaing Circles?
Thread Solved |
•
•
Join Date: Nov 2009
Posts: 33
Reputation:
Solved Threads: 2
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
please help
Java Syntax (Toggle Plain Text)
from graphics import * import math def drawCircle(win, centre, radius, colour): circle = Circle(centre, radius) circle.setFill(colour) circle.setWidth(2) circle.draw(win) def drawTarget(): win = GraphWin() centre = Point(100,100) drawCircle(win, centre, 40, "white") drawCircle(win, centre, 20, "blue") drawCircle(win, centre, 10, "black")
![]() |
Similar Threads
- Drawing circles and connecting them (C#)
- Drawing circles and connecting them (C#)
- circles erased ?? (C#)
- Document Root paths and circles (Search Engine Optimization)
- Circles .... Locus... (C++)
- Two red circles with X (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: Java word guessing game - problem
- Next Thread: simple question about my code
Views: 331 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Java
add android applet arguments array arraylist arrays binary bluetooth c++ chat class classes client code component convert converter coordinates data database db design detection eclipse error event exception file forloop fractal givemetehcodez graphics gridlayout gui helpwithhomework homeworkassignment html ide image images inheritance input integer j2me java jframe jni jpanel jtable key lazy linked linked-list list loop looping method methods mobile netbeans newbie node number object objects oracle os output pattern pixel printing problem program programming project read regex remote remove return robot scanner server service set size sms source sql string swing test text text-file transfer tree url user web






