blockly > Engelle > setColour
Block.setColour() yöntemi
Bir bloğun rengini değiştirebilirsiniz.
İmza:
setColour(colour: number | string): void;
Parametreler
Parametre |
Tür |
Açıklama |
renk |
sayı | dize |
HSV ton değeri (0 - 360), #RRGGBB dizesi veya bu iki değerden birine işaret eden bir mesaj referans dizesi. |
Şunu döndürür:
geçersiz
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-10 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-10 UTC."],[[["The `Block.setColour()` method is used to change the color of a block in Blockly."],["You can specify the color using an HSV hue value (0-360), a hexadecimal color code (#RRGGBB), or a message reference string."],["Calling this method does not return any value (void)."]]],[]]