TESTER

triangle

triangle([points], [x1], [y1], [x2], [y2], [x3], [y3], [stroke], [fill], [weight])

Draw a triangle

Syntaxe

triangle(10, 10, 5, 5, 5, 5, stroke="#000000", fill="#FFA000", weight=4)
triangle(x1=10, y1=10, x2=5, y2=5, x3=5, y3=5, stroke="#000000", fill="#FFA000", weight=4)
triangle(points=[10,10, 5,5, 5,5], stroke="#000000", fill="#FFA000", weight=4)

Arguments

NameRequiredDefaultDescription
points--List of points [x1,y1, x2,y2, x3,y3]
x1--x-coordinate of the first point
y1--y-coordinate of the first point
x2--x-coordinate of the second point
y2--y-coordinate of the second point
x3--x-coordinate of the third point
y3--y-coordinate of the third point
stroke--Stroke color
fill--Fill color
weight--Stroke weight (thickness)