Scratch for Java

Pen

The Pen class represents a drawing tool that can be used to draw paths on a stage. It supports various functionalities such as setting color, size, transparency, moving to different positions, and stamping the current sprite onto the canvas. The Pen can be associated with a Sprite and can draw on both the foreground and background.

Pen