blockly > blockRendering > IPathObject > applyColour

blockRendering.IPathObject.applyColour() method

Apply the stored colours to the block's path, taking into account whether the paths belong to a shadow block.

Signature:

applyColour?(block: BlockSvg): void;

Parameters

Parameter Type Description
block BlockSvg The source block.

Returns:

void