Triangle

Description

The triangle command draws a triangle by specifying three vertices and a border weight. The triangle is positioned relative to the current draw cursor position.

Syntax

triangle point1_x point1_y point2_x point2_y point3_x point3_y border_weight

Parameters

  • point1_x: x-coordinate of the first vertex

  • point1_y: y-coordinate of the first vertex

  • point2_x: x-coordinate of the second vertex

  • point2_y: y-coordinate of the second vertex

  • point3_x: x-coordinate of the third vertex

  • point3_y: y-coordinate of the third vertex

  • border_weight: Thickness of the triangle's border in pixels

Usage Examples

Important Notes

  • Triangle vertices are positioned relative to the draw cursor position

  • The triangle is drawn using the current color (set with the c command)

  • Triangles are non-interactive visual elements (not clickable)

  • Border weight affects the thickness of all triangle edges

  • Coordinates can be negative to draw relative to the cursor position

  • The triangle is filled with the current color

  • Order of vertices determines the triangle's orientation

Last updated

Was this helpful?