Pen::down()
Puts the pen down. Afterwards the pen can draw on the stage.
Examples
import org.openpatch.scratch.*;
import org.openpatch.scratch.extensions.pen.*;
public class PenDown {
public PenDown() {
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);
myStage.wait(500);
myStage.exit();
}
public static void main(String[] args) {
new PenDown();
}
}
Syntax
Java
.down()
Scratch
Return
void