From Test-Scratch-Wiki

2.0 Clear.png
Category Pen
Type Stack

The Clear block is a Pen block and a Stack block. The block removes all marks made by the pen or stamps. This block is the only Pen block that the Stage can use.

Example Uses

This block is used in almost all projects involving the pen (especially graphic editor simulations), as clearing the screen once the project starts would be a main priority.

Some common uses for the Clear block:

  • Clearing the screen in a paint program
when this sprite clicked
switch costume to [Pressed v]
switch costume to [Not Pressed v]
  • Resetting the penning ground in a pattern maker
wait until <(dots made) > [50]>
set [dots made v] to [0]
  • Removing stamps in a maze generator or something similar
when I receive [Next maze v]
broadcast [Generate v]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.