fill: Set shape color

Description Usage Arguments Examples

View source: R/color.R

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)

ropenscilabs/realtime documentation built on July 12, 2018, 8:56 a.m.