world.GetMapColour
Returns the mapping for how a particular colour will be displayed
Prototype
long GetMapColour(long Which);
Description
Returns the RGB code for how a particular colour is going to be displayed.
VBscript example
colour = MapColour (ColourNameToRGB ("red"))
Jscript example
colour = MapColour (ColourNameToRGB ("red"))
Lua example
colour = MapColour (ColourNameToRGB ("red"))
Return value
The RGB code corresponding to the colour in the colour mapping table. If the colour is not present, the supplied argument will be returned.
Related topic
See also
| Function | Description |
|---|---|
| ColourNameToRGB | Converts a named colour to a RGB colour code. |
| MapColourList | Returns an array of all the mapped colours |
| RGBColourToName | Converts an RGB colour code to its equivalent name |