Scratch for Java

ExtensionContext::addLayerDrawer()

Browser availability: desktop-only.

This API requires the desktop runtime. Browser declarations may report the limitation without performing the operation.

Draws into a layer every frame, after the layer's canvas and before its sprites: map tiles, drawings. Game thread, when the draw list is made.

Syntax

Java

.addLayerDrawer(layer, drawer)

Parameters

Name Data Type Description
layer Layer
drawer LayerDrawer

Return

void

addLayerDrawer()

Create Shareable URL

Select Sections