getRed

getRed(number color) → integer red
Returns the red component of given color, between 0 and 255. For instance getRed(COLOR_RED) = 255 and getRed(COLOR_BLUE) = 0.

Returns the amount of red in the color color, between 0 and 255. For example, getRed(COLOR_RED) = 255 and getRed(COLOR_BLUE) = 0.

Parameters
Return