Description Usage Arguments Examples
Set the dimensions of the sketch canvas
1 | createCanvas(sketch, w, h, renderer = NULL)
|
sketch |
A p5 sketch. |
w |
The width of the canvas in pixels. |
h |
The height of the canvas in pixels. |
renderer |
Either the default renderer ( |
1 2 3 4 5 6 7 8 | ## Not run:
p5() %>%
createCanvas(300, 200) %>%
background("#FAE")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.