A slightly different approach and maybe a touch faster may be:
Assuming this formula
Assuming this formula
r=255 g=128 b=0 c=(r*65536)+(g*256)+b Color 0,0,c Text 0,0,"*** " + c + " ***" WaitKeyThis means you can create a bunch of constants like
Const col_White = (255*65536)+(255*256)+255 Const col_Yellow = (255*65536)+(255*256)+0 Const col_Blue = (0*65536)+(0*256)+255 Const col_Orange = (255*65536)+(128*256)+0 etc etc etcThen just use them like:
Color 0,0,col_yellow Text 0,10,"Yellow" WaitKeyI would suggest just creating a dirty big include that you stick at the top of your program so you don't need to see all the constants.