background: Set the canvas bachground color

Description Usage Arguments Examples

View source: R/color.R

Description

Set the canvas bachground color

Usage

1
background(sketch, colorstring)

Arguments

sketch

A p5 sketch.

colorstring

A hex color string.

Examples

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

p5() %>%
  background("#FAE")

setup() %>%
  background(rgb(255, 204, 0, maxColorValue = 255))

draw() %>%
  background("#808080")


## End(Not run)

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