| | |
Drwaing Circles?
Thread Solved |
•
•
Join Date: Nov 2009
Posts: 30
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 |
account android api applet application array arrays automation awt bidirectional binary birt bluetooth busy_handler(null) chat class classes client code columns component database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source plazmic print problem program programming project property recursion ria scanner search server set smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree webservices windows






