Scratch for Java

Stage::getWidth()

Return the width of the current costume or the pen size, when no costume is available.

Syntax

Java

.getWidth()

Return

int

getWidth()