Scratch for Java

Pixels::foreground()

Browser availability: desktop-only.

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

Returns the pixels of the foreground layer.

Syntax

Java

.foreground()

Return

int[]

foreground()

Create Shareable URL

Select Sections