Pen::changeSize() Examples Syntax Java Scratch Parameters Return Pen::changeSize() Change the size by a given amount. This does only have an effect on new points, which are created by setting the position. Examples import org.openpatch.scratch.*; import org.openpatch.scratch.extensions.pen.*; public class PenChangeSize { public PenChangeSize() { Stage myStage = new Stage(600, 240); Pen myPen = new Pen(); myStage.add(myPen); while (myStage.getTimer().forMillis(3000)) { myPen.changeSize(1); myPen.down(); myPen.setPosition(myStage.pickRandom(0, myStage.getWidth()), 45); myPen.up(); myStage.wait(200); } myStage.exit(); } public static void main(String[] args) { new PenChangeSize(); } } View on GitHub Syntax Java .changeSize(amount) Scratch change pen [size v] by () Parameters Name Data Type Description amount float Changes the size by the amount. Return void changeSize()