Pen::up() Examples Syntax Java Scratch Return Pen::up() Puts the pen up. When the pen is up, it will not draw on the stage Examples import org.openpatch.scratch.*; import org.openpatch.scratch.extensions.pen.*; public class PenUp extends Window { public PenUp() { super(600, 240); this.setStage(new MyStage()); } public void whenExits() { } class MyStage extends Stage { private Pen myPen; public MyStage() { super(600, 240); myPen = new Pen(); this.add(myPen); myPen.down(); } public void run() { myPen.setPosition(this.getMouseX(), this.getMouseY()); if (this.getTimer().afterMillis(3000)) { this.exit(); } } } public static void main(String[] args) { new PenUp(); } } View on GitHub Syntax Java .up() Scratch pen up Return void up()