Maptitude GISDK Help |
Creates a color based on the amounts of red, green and blue.
In Version 6.0/2012 added optional alpha (opacity).
c = ColorRGB(integer red, integer green, integer blue [, integer alpha])
Argument |
Contents |
red |
The amount of red saturation, between 0 (minimum) and 65535 (maximum) |
green |
The amount of green saturation, between 0 and 65535 |
blue |
The amount of blue saturation, between 0 and 65535 |
alpha |
The amount of opacity, from 0 (clear) to 65535 (completely opaque, the default) |
A color (red, green, blue, and alpha).
Pure red with maximum brightness corresponds to (red = 65535, green = 0, blue = 0). Similarly for pure green and pure blue of maximum brightness.
Pure white corresponds to (red = 65535, green = 65535, blue = 65535).
Pure black corresponds to (red = 0, green = 0, blue = 0).
Opacity can also be set with the alpha selector on a color; for more information, see Compound Variables.
Function |
Summary |
Creates a color based on hue, saturation and brightness |
|
Creates a color based on hue, lightness and saturation |
|
Creates a color based on its (x, y, Y) coordinates in CIE chromaticity space |
©2025 Caliper Corporation | www.caliper.com |