Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How do you draw triangles?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
leu_raz




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Hikaru79




PostPosted: Sun Oct 17, 2004 9:24 am   Post subject: (No 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
leu_raz




PostPosted: Sun Oct 17, 2004 9:22 pm   Post subject: (No subject)

Wow thank you very much but can you help me draw a bowtie?
PLEASE.Thxxx
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: