js: Add Javascript to any part of a sketch

Description Usage Arguments

Description

Add Javascript to any part of a sketch

Usage

1
js(sketch, ..., objn = "p.")

Arguments

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 ("").


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