point: Draw a Point

Description Usage Arguments See Also Examples

Description

Draw a Point

Usage

1
point(sketch, x = NULL, y = NULL, z = NULL)

Arguments

sketch

A p5 sketch.

x

The x coordinate.

y

The y coordinate.

z

The z coordinate (for 3D WEBGL mode).

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

p5() %>%
  point(30, 30) %>%
  point(40, 40) %>%
  point(50, 50)

(Formaldehyde * 100) %>%
  p5() %>%
  point(~carb, ~optden)


## End(Not run)

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