Scratch for Java

Stage::addBackdrop()

Add a backdrop to the stage. If a backdrop with the received name already exists do nothing.

Example usage:

this.addBackdrop("bg_castle");

Examples

View on GitHub

Syntax

Java

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

Parameters

Name Data Type Description
name String a unique name
imagePath String a image path, or the name of a built-in sprite such as "bg_castle"
stretch boolean stretch image to window size

Return

void

addBackdrop()

Create Shareable URL

Select Sections