Https://processing.org/examples/hue.html

One way is to use p5.js rather than the original Processing (Java) mode

If you want a hosted solution and to embed a sketch, you can also use openprocessing – which can host processing.js (written in Java-style syntax) or p5.js (in JavaScript style). The example you linked is actually using processing.js – but for the web, p5.js is usually preferred.

See also:

1 Like