Drawing Commands

Line Commands

line

Draws a line between two points.

line x1 y1 x2 y2

Example:

line 10 10 -10 -10  // Draws a diagonal line

cont

Continues a line from the last point of the previous line.

cont x y

Example:

line 10 10 -10 -10
cont 10 -10  // Continues from (-10, -10) to (10, -10)

Style Commands

c (color)

Sets the color for subsequent drawing operations.

Example:

w (weight)

Sets the line weight for subsequent drawing operations.

Example:

Shape Commands

square

Draws a square outline at the specified position.

Example:

dot

Draws a single dot at the specified position.

Example:

cutcircle

Draws a partial circle outline.

Parameters:

  • x, y: Center position

  • size: Radius

  • angle: Rotation (0-36)

  • filled: Arc length in degrees (0-360)

Example:

ellipse

Draws an ellipse.

Parameters:

  • x, y: Center position

  • width: Base width

  • height_multiplier: Height relative to width

  • direction: Rotation angle

Example:

Last updated

Was this helpful?