Skip to main content

Home > blockly > Block > setColour

Block.setColour() method

Change the colour of a block.

Signature:

setColour(colour: number | string): void;

Parameters

ParameterTypeDescription
colournumber | stringHSV hue value (0 to 360), #RRGGBB string, or a message reference string pointing to one of those two values.

Returns:

void