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


ropenscilabs/realtime documentation built on May 29, 2019, 8:50 a.m.