quad: Draw a Quadrilateral

Description Usage Arguments See Also Examples

Description

Draw a Quadrilateral

Usage

1
2
quad(sketch, x1 = x1, y1 = y1, x2 = x2, y2 = y2, x3 = x3, y3 = y3,
  x4 = x4, y4 = y4)

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.

x4

The x coordinate for the fourth point.

y4

The y coordinate for the fourth point.

See Also

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

Examples

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

p5() %>%
  quad(40, 30, 85, 25, 70, 65, 35, 75)


## End(Not run)

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