
-----------------------------------
leu_raz
Sun Oct 17, 2004 7:44 am

How do you draw triangles?
-----------------------------------
Please tell me how to draw triangles. BEcause i need to draw a bowtie and make it spin.
 And if you could please give me an example with co-ordinates and stuff.

-----------------------------------
Hikaru79
Sun Oct 17, 2004 9:24 am


-----------------------------------
If you're using HSA it's simply 

int [] x = {50,100,150};
int [] y = {200,50,200};
c.drawPolygon (x,y,3};


Without HSA it's a bit more involved. Here's a tutorial: 
http://leepoint.net/notes-java/30GUI/20graphics/35polygon.html

-----------------------------------
leu_raz
Sun Oct 17, 2004 9:22 pm


-----------------------------------
Wow thank you very much but can you help me draw a bowtie?
PLEASE.Thxxx
