Category:World

Sets the background of the display area to an image.

When creating a Sprite Lab project, you may want to customize the background. This block has a drop-down menu of images you can use.

Examples

Example 1

The background starts white in Sprite Lab, but it can be changed to any image.

Example 2

The background can be changed multiple times throughout a project.

Parameters

NameDescription
image name The image to set as the background

Tips

  • Click on the down arrow on the right side of the block to see which images you can choose as your background.
  • Pay attention to the order of the backgrounds set. When more than one background is used together in a sequence, the last background set will be the one that is seen.

Found a bug in the documentation? Let us know at documentation@code.org