GetColorBlue doesn't get a color from a screen position, it just gets the blue component property from a color that's been mixed and stored in a variable.
I hope my explanation will suffice.
// Project: GetColor
// Created: 22-08-10
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "GetColor" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 )
global redComponent as integer
global greenComponent as integer
global blueComponent as integer
global alphaComponent as integer
global myColor as integer
myColor = MakeColor(55, 155, 255, 128)
do
redComponent = GetColorRed(myColor)
greenComponent = GetColorGreen(myColor)
blueComponent = GetColorBlue(myColor)
alphaComponent = GetColorAlpha(myColor)
print("Red Value = " + str(redComponent))
print("Green Value = " + str(greenComponent))
print("Blue Value = " + str(blueComponent))
print("Alpha Value = " + str(alphaComponent))
Sync()
loop