блочный > Блок > getColor
Метод Block.getColor()
Получите цвет блока.
Подпись:
getColour(): string;
Возврат:
нить
Строка #RRGGBB.
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-10 UTC.
[null,null,["Последнее обновление: 2025-01-10 UTC."],[[["The `getColour()` method retrieves the color of a block."],["It returns the color as a hexadecimal string in the #RRGGBB format."]]],["The `Block.getColour()` method retrieves the color of a block. It returns a string representing the block's color in the format #RRGGBB. This method's signature indicates it takes no parameters and outputs a string value. It provides a way to access the color information of a block object.\n"]]