(Redirected from Clear (block))
Prior to Scratch 3.0, this block was titled "clear".
This block is used in most projects involving the pen, as clearing the screen once the project starts would be a main priority.
Some common uses for the Erase All block are:
- Clearing the screen in a paint program:
when this sprite clicked switch costume to [pressed v] erase all wait until < not < mouse down? > > switch costume to [not pressed v]
- Resetting the penning ground in a pattern maker:
wait until <(dots made) > > set [dots made v] to  erase all
- Removing stamps in a maze generator or something similar:
when I receive [next maze v] erase all broadcast [generate v]
- Clearing the screen to draw the next frame in a pen animation
when green flag clicked forever draw end define draw erase all . . .