triangle()

Category: Shape

Subcategory: 2D Primitives

Complexity: Beginner

Description

A triangle is a plane created by connecting three points. The first two arguments specify the first point, the middle two arguments specify the second point, and the last two arguments specify the third point.

Related

Example

Code:
triangle(30, 75, 58, 20, 86, 75);
Preview: