build_rgb_round


Description:

public static Color build_rgb_round (uint8 r, uint8 g, uint8 b)

Build a RGB color value based on the current graphics mode.

This function is similar to build_rgb, but will limit the RGB components to 255 during the scaling.

This will not allocate a new color even if a color table is being used.

Parameters:

r

the red component value

g

the green component value

b

the blue component value

Returns:

a new color value.