Triangle
Description
Syntax
triangle point1_x point1_y point2_x point2_y point3_x point3_y border_weightParameters
Usage Examples
Important Notes
Last updated
triangle point1_x point1_y point2_x point2_y point3_x point3_y border_weightLast updated
// Basic triangle
c #fff
goto 100 100
triangle 0 0 50 50 0 100 2
// Creates a right triangle at (100,100)
// Equilateral triangle
c #00ff00
goto 200 200
triangle -50 43 50 43 0 -43 3
// Creates an equilateral triangle centered at (200,200)
// Arrow pointer
c #ff0000
goto 150 150
triangle 0 -25 25 25 -25 25 1
// Creates a triangle pointing upward