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
Parameters
point1_x
: x-coordinate of the first vertexpoint1_y
: y-coordinate of the first vertexpoint2_x
: x-coordinate of the second vertexpoint2_y
: y-coordinate of the second vertexpoint3_x
: x-coordinate of the third vertexpoint3_y
: y-coordinate of the third vertexborder_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?