Name RGBColourToName
Type Method
Summary Converts an RGB colour code to its equivalent name
Prototype BSTR RGBColourToName(long Colour);
Description Converts an RGB colour code (eg. 255) to its HTML name (eg. "red").

If the name is not in the list of names recognised by MUSHclient, the colour is represented as a hex HTML colour (eg. "#010203").

The list of colour names recognised can be found by using MUSHclient's "colour picker" (Ctrl+Alt+P), or by using the function:

world.debug "colours"

Note: Available in MUSHclient version 3.22 onwards.
VBscript example
world.note world.RGBColourToName (255)
Jscript example
world.note (world.RGBColourToName (255));
PerlScript example
$world->note ($world->RGBColourToName (255));
Returns The colour name (eg. "red", "blue"), or an RGB code (eg. "#FFE4E1).

See also ...