Pen::up()
Hebt den Stift an. Danach kann nicht mehr gezeichnet werden.
Beispiele

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();
}
}
Syntax
Java
.up()
Scratch
pen up
Rückgabe
void