Pen
Description
Pen Commands
Pen State
pen "down"
// Start drawing - subsequent movements will create lines
pen "up"
// Stop drawing - subsequent movements won't create linesPen Properties
pen "size" 3
// Set line thickness in pixels
pen "opacity" 75
// Set line opacity (0-100)
pen "brightness" 100
// Set line brightness (0-100)Line Drawing Commands
Basic Line
Dotted Line
Striped Line
Command Reference
line x1 y1 x2 y2
dots x1 y1 x2 y2 count
stripe x1 y1 x2 y2 segments gap
Important Notes
Last updated