Pen
Description
The pen commands allow you to draw various types of lines on the screen. The pen can be configured with different properties like size, opacity, and brightness.
Pen Commands
Pen State
Pen Properties
Line Drawing Commands
Basic Line
Draws a straight line between two points.
Dotted Line
Creates a line made up of evenly spaced dots.
Striped Line
Creates a dashed line with configurable segment length and spacing.
Command Reference
line x1 y1 x2 y2
Draws a solid line from point (x1,y1) to (x2,y2)
dots x1 y1 x2 y2 count
Draws a dotted line from (x1,y1) to (x2,y2) with specified number of dots
stripe x1 y1 x2 y2 segments gap
Draws a dashed line from (x1,y1) to (x2,y2) with specified number of segments and gap size
Important Notes
Always set color (
c
) and pen size before drawingUse
goto
to position the pen before drawingPen properties (size, opacity, brightness) affect all subsequent drawing operations
The coordinate system is centered (0,0 is in the middle of the window)
Positive Y is up, negative Y is down
Import "win-buttons" to show window controls when needed
Last updated
Was this helpful?