Add Javascript to any part of a sketch
1 |
sketch |
A p5 sketch. |
... |
Strings of Javascript code to add to the sketch. |
objn |
The name of the sketch object followed by a period. Most of the time you should keep the default 'p.', however it can be useful to change this to and empty string ('""'). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.