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

Username:   Password: 
 RegisterRegister   
 Some help with drawbox (newb)
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
joe333




PostPosted: Tue Mar 30, 2004 8:18 pm   Post subject: Some help with drawbox (newb)

I am VERY new at this. I want the user to pick a length and width and then draw a box centred in the middle of the screen with those length and widths.
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Tue Mar 30, 2004 8:52 pm   Post subject: (No subject)

code:

var width, height : int
get width
get height
drawbox (maxx div 2 - (width div 2), maxy div 2 - (height div 2), maxx div 2 + (width div 2), maxy div 2 + (height div 2), black)


that what you're looking for?
joe333




PostPosted: Tue Mar 30, 2004 9:02 pm   Post subject: (No subject)

yep, thanks
Display posts from previous:   
   Index -> Programming, Turing -> Turing 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: