Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > Blokir > getColour
Metode Block.getColour()
Mendapatkan warna blok.
Tanda Tangan:
getColour(): string;
Hasil:
string
String #RRGGBB.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-21 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-21 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"]]