Scratch for Java

UISprite::setWidth()

Sets the width of the sprite in pixels.

Examples

View on GitHub

Syntax

Java

.setWidth(width)

Parameters

Name Data Type Description
width double the width in pixels

Return

void

setWidth()

Create Shareable URL

Select Sections