triangle: Draw a Triangle

Description Usage Arguments See Also Examples

Description

Draw a Triangle

Usage

1
2
triangle(sketch, x1 = x1, y1 = y1, x2 = x2, y2 = y2, x3 = x3,
  y3 = y3)

Arguments

sketch

A p5 sketch.

x1

The x coordinate for the first point.

y1

The y coordinate for the first point.

x2

The x coordinate for the second point.

y2

The y coordinate for the second point.

x3

The x coordinate for the third point.

y3

The y coordinate for the third point.

See Also

Other Shape 2D Primitives: arc, ellipse, line, point, quad, rect

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

p5() %>%
  triangle(20, 80, 50, 20, 80, 80)




## End(Not run)

seankross/p5 documentation built on May 30, 2019, 8:17 a.m.