Description Usage Arguments Examples
Set the canvas bachground color
1 | background(sketch, colorstring)
|
sketch |
A p5 sketch. |
colorstring |
A hex color string. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.