min needs to be called upon first?
Author |
Message |
x-ecutioner
|
Posted: 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

|
|
 |
andrew.
|
Posted: 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
|
Posted: Sat Nov 08, 2008 7:58 pm Post subject: RE:min needs to be called upon first? |
|
|
oh alright
thanks very much:) |
|
|
|
|
 |
|
|