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)

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