blockly > Block > getHue
Block.getHue() method
Get the HSV hue value of a block. Null if hue not set.
Signature:
getHue(): number | null;
Returns:
number | null
Hue value (0-360).
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."],[[["The `getHue()` method retrieves the hue value of a block, represented as a number between 0 and 360."],["If the block's hue is not explicitly set, the method returns `null`."],["This method is part of the `Block` class in Blockly and is used to access the color information of a block."]]],["The `Block.getHue()` method retrieves the HSV hue value of a block. It returns a number between 0 and 360 representing the hue, or `null` if the hue is not set. This method is used to determine the hue property of a block, and the method signature shows it returns either a numerical value or a null value.\n"]]