fill: Set shape color

Description Usage Arguments Examples

Description

Set shape color

Usage

1
fill(sketch, colorstring)

Arguments

sketch

A p5 sketch.

colorstring

A hex color string.

Examples

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

p5() %>%
  fill("#FAE") %>%
  rect(10, 10, 10, 10) %>%
  fill("#808080") %>%
  rect(30, 30, 10, 10)


## End(Not run)

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