If Set Colour
If set-colour is used to set the colour of a text component.
Constructors
Link copied to clipboard
A secondary constructor to build a colour from Color. This can be useful to avoid manual colour conversions, as 8-bit colours are typically used. This function will strip away the 3 least significant bits from the colours, as Jagex's colour format only expects 5 bits per colour, so small changes in tone may occur.