background: Set the canvas bachground color

Description Usage Arguments Examples

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 May 29, 2019, 8:50 a.m.