Scratch for Java

Window::useTextureSampling()

Chooses how pictures are smoothed when they are drawn larger or smaller than they really are. Pixel art usually wants TextureSampling.POINT.

Call it before the first stage is created.

Window.useTextureSampling(TextureSampling.POINT);
 new MyStage();

Syntax

Java

.useTextureSampling(sampling)

Parameters

Name Data Type Description
sampling TextureSampling how to smooth pictures

Return

void

useTextureSampling()

Create Shareable URL

Select Sections