Scratch for Java

Diese Seite ist noch nicht übersetzt. Sie wird in ihrer Originalsprache angezeigt.

Sprite::setWidth()

Draws the sprite this wide, whatever its costume's width and size: for buttons, panels and platforms. With setNineSlice(int, int, int, int) the corners keep their size.

Examples

View on GitHub

Syntax

Java

.setWidth(width)

Parameters

Name Data Type Description
width double the width in stage pixels; 0 to follow the costume and size again

Return

void

setWidth()

Teilbare URL erstellen

Abschnitte auswählen