getRed, getGreen, getBlue

Returns the color component of the given display pixel, addressed by an x and a y value.

Please see color for a description of what the return value (0-255) represents.

Usage

    red_value = getRed(x, y);
    green_value = getGreen(x, y);
    blue_value = getBlue(x, y);