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

Username:   Password: 
 RegisterRegister   
 min needs to be called upon first?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
x-ecutioner




PostPosted: Sat Nov 08, 2008 6:37 pm   Post subject: min needs to be called upon first?

hey all,
simple question
first time ive used min as an x co-ordinate for drawing a box, check out the script:
code:

View.Set("graphics: max,max")
View.Set("position:middle, middle")
drawfillbox(min,min,max,max,255)

it says that
code:

predefined routine min can only be referenced by calling it.

any ideas?
Sponsor
Sponsor
Sponsor
sponsor
andrew.




PostPosted: Sat Nov 08, 2008 7:52 pm   Post subject: RE:min needs to be called upon first?

Because the min function is for finding which of two numbers are the smallest. The same goes for max. If you want to make the box fill the whole screen, use 0,0 as your first points (the bottom left corner) and maxx, maxy as your last two points (the highest x value and the highest y value).
x-ecutioner




PostPosted: Sat Nov 08, 2008 7:58 pm   Post subject: RE:min needs to be called upon first?

oh alright
thanks very much:)
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: