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
Parameter | Type | Description |
---|---|---|
colour | string | #RRGGBB colour string. |
Returns:
BlockStyle
A populated block style based on the given colour.