Skip to main content

Home > blockly > blockRendering > ConstantProvider > createBlockStyle_

blockRendering.ConstantProvider.createBlockStyle_() method

Create a block style object based on the given colour.

Signature:

protected createBlockStyle_(colour: string): BlockStyle;

Parameters

ParameterTypeDescription
colourstring#RRGGBB colour string.

Returns:

BlockStyle

A populated block style based on the given colour.