blockly > Block > setColour

Block.setColour() method

Change the colour of a block.

Signature:

setColour(colour: number | string): void;

Parameters

Parameter Type Description
colour number | string HSV hue value (0 to 360), #RRGGBB string, or a message reference string pointing to one of those two values.

Returns:

void