Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > blockRendering > IPathObject > applyColour
blockRendering.IPathObject.applyColour()-Methode
Wenden Sie die gespeicherten Farben auf den Pfad des Blocks an und berücksichtigen Sie dabei, ob die Pfade zu einem Schattenblock gehören.
Unterschrift:
applyColour(block: BlockSvg): void;
Parameter
Parameter |
Typ |
Beschreibung |
Blocken |
BlockSvg |
Der Quellblock. |
Gibt zurück:
void
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2023-12-02 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]