| | |
Drwaing Circles?
Thread Solved |
•
•
Join Date: Nov 2009
Posts: 28
Reputation:
Solved Threads: 1
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
| Thread Tools | Search this Thread |
2dgraphics account android api apple applet application arguments array arrays automation banking binary binarytree bluetooth chat chatprogramusingobjects class client code color component count database derby design eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui homework html ide if_statement image integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel jtextfield julia keyword linux list macintosh map method methods midlethttpconnection mobile netbeans newbie nullpointerexception object open-source os problem producer program programming project projectideas property read recursion reference replaysolutions ria scanner search server set size sms sort sourcelabs splash sql sqlite stop string swing threads transforms tree ui unicode validation windows






