I\'m writing a processingjs script that I want to resize depending on the users viewport width. As far as I know there\'s no functionality for this in processing, so I\'ve been
You can call $(window).width(); in the size function. Mixing js and p5 code is fine in processing.js.
void setup() { size( $(window).width(), $(window).height() ); ... }