blockly > Block > colour_
Block.colour_ property
Colour of the block in '#RRGGBB' format.
Signature:
protected colour_: string;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`colour_` is a property of the `Block` class in Blockly and represents the block's color."],["It is a protected property with the data type of string and stores color values in '#RRGGBB' format."]]],["The `Block.colour_` property defines the color of a block. It is represented as a string in '#RRGGBB' format, indicating the red, green, and blue color values. This property is protected, signifying its intended use within the class or its subclasses. It holds the hexadecimal color code that determines the visual appearance of a specific block.\n"]]