Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > BlockSvg > getColour
Metode BlockSvg.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."],[[["`BlockSvg.getColour()` is a method used to retrieve the color of a block element."],["The method returns the color value as a string in the #RRGGBB format."],["This function does not take any input parameters."]]],["The `BlockSvg.getColour()` method retrieves the color of a block. It returns a string representing the block's color in the format of a hexadecimal color code, specifically #RRGGBB. This method has no input parameters and directly returns the color value as a string.\n"]]