Scratch for Java

Sorting::by()

Browser availability: desktop-only.

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

Draws sprites in an order of your own.

Syntax

Java

.by(comparator)

Parameters

Name Data Type Description
comparator Comparator<Sprite> decides which of two sprites is drawn first

Return

void

by()

Create Shareable URL

Select Sections