Yes it is very poorly described. Oddly enough, AppGameKit still doesn't have a proper RGB command. However, if you throw these functions into your code you can then use RGB() in place of the color value.
// RGB <-> r,g,b
function Red(color)
Red = mod(color, 256)
EndFunction red
function blue(color)
blue = mod((color/256),256)
EndFunction blue
function green(color)
green = mod((color/(256*256)), 256)
EndFunction green
Function RGB(r,g,b)
color = r +g*256 + b*256*256
EndFunction color
Sample usage (draws a box with four different colored corners, filled in):
DrawBox(0, 0, 128, 128, RGB(0, 255, 0), RGB(0, 0, 255), RGB(255, 0, 255), RGB(255, 255, 0), 1)