Pen::eraseAll() Examples Syntax Java Scratch Return Pen::eraseAll() Erases all drawings made by a pen. Examples import org.openpatch.scratch.*; import org.openpatch.scratch.extensions.pen.*; public class PenEraseAll { public PenEraseAll() { Stage myStage = new Stage(600, 240); Pen myPen = new Pen(); myStage.add(myPen); myPen.down(); myPen.setSize(10); myPen.setPosition(120, 45); myPen.setColor(0, 255, 0); myPen.setPosition(50, 45); myPen.up(); myPen.setPosition(50, 0); while (myStage.getTimer().forMillis(3000)) { if (myStage.isKeyPressed(KeyCode.VK_SPACE)) { myPen.eraseAll(); } } myStage.exit(); } public static void main(String[] args) { new PenEraseAll(); } } View on GitHub Syntax Java .eraseAll() Scratch erase all Return void eraseAll()