IfSetColour

constructor(interfaceId: Int, componentId: Int, red: Int, green: Int, blue: Int)
constructor(combinedId: Int, red: Int, green: Int, blue: Int)
constructor(combinedId: Int, colour15BitPacked: Int)


constructor(interfaceId: Int, componentId: Int, color: Color)
constructor(combinedId: Int, color: Color)

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.