RequestColor()?

BlitzMax Forums/BlitzMax Programming/RequestColor()?

BLaBZ(Posted 2012) [#1]
I've seen this used but its undocumented.

How do you implement this?


Brucey(Posted 2012) [#2]
Something like :


Local red:Int = 120
Local green:Int = 120
Local blue:Int = 120


If RequestColor(red,green,blue)
   Local newRed:Int = RequestedRed()
   Local newGreen:Int = RequestedGreen()
   Local newBlue:Int = RequestedBlue()
End If




Floyd(Posted 2012) [#3]
It is documented online, and in the IDE with the 1.48 version of BlitzMax.

I've just learned this by noticing your question and looking. It's not in my old 1.42 install. But it seems that 1.48 includes MaxGUI. That has been true since 1.44, according to the versions.txt file. A glance at the doc example code shows that the MaxGUI drivers must be Imported.

Import MaxGui.Drivers

Local red:Int = 120
Local green:Int = 120
Local blue:Int = 120


If RequestColor(red,green,blue)
   Local newRed:Int = RequestedRed()
   Local newGreen:Int = RequestedGreen()
   Local newBlue:Int = RequestedBlue()
End If