Computer Science Canada

Some help with drawbox (newb)

Author:  joe333 [ 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.

Author:  Cervantes [ Tue Mar 30, 2004 8:52 pm ]
Post 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?

Author:  joe333 [ Tue Mar 30, 2004 9:02 pm ]
Post subject: 

yep, thanks


: