Computer Science Canada

How do you draw triangles?

Author:  leu_raz [ Sun Oct 17, 2004 7:44 am ]
Post subject:  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.

Author:  Hikaru79 [ Sun Oct 17, 2004 9:24 am ]
Post subject: 

If you're using HSA it's simply
code:

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

Author:  leu_raz [ Sun Oct 17, 2004 9:22 pm ]
Post subject: 

Wow thank you very much but can you help me draw a bowtie?
PLEASE.Thxxx


: