Gets a color based on the RGB value.
A new color is allocated in the color table if needed.
The color should be released with put when it is no longer used.
r |
the red component value |
g |
the green component value |
b |
the blue component value |
the composite color value or NONE if there are no more free colors. |