Scratch for Java

Stage::addBackdrop()

Adds a backdrop. The first one added is shown.

Examples

View on GitHub

Syntax

Java

.addBackdrop(name, imagePath)
.addBackdrop(imagePath)
.addBackdrop(name, imagePath, stretch)

Parameters

Name Data Type Description
name String the backdrop's name
imagePath String the image file
stretch boolean whether to stretch it to the stage's size

Return

void

addBackdrop()

Create Shareable URL

Select Sections