Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > blockRendering > IPathObject > applyColour
Metode blockRendering.IPathObject.applyColour()
Terapkan warna yang disimpan pada jalur blok, dengan memperhatikan apakah jalur tersebut milik blok bayangan.
Tanda Tangan:
applyColour(block: BlockSvg): void;
Parameter
Parameter |
Jenis |
Deskripsi |
memblokir |
BlockSvg |
Blok sumber. |
Hasil:
void
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 2023-12-02 UTC.
[null,null,["Terakhir diperbarui pada 2023-12-02 UTC."],[[["The `applyColour` method is part of the `blockRendering.IPathObject` interface and is used to color block paths."],["It takes a `BlockSvg` object as input to determine the source block and colors the paths accordingly, considering if the block is a shadow block."],["The method does not return any value and is used to visually represent the block on the screen with its corresponding colors."]]],["The `applyColour` method, part of the `IPathObject` interface, updates a block's path with stored colors. It considers whether the block is a shadow block when applying these colors. This method accepts a single parameter, `block`, of type `BlockSvg`, which represents the block whose path needs to be colored. It returns nothing.\n"]]