Method random2D() is from Processing 2 series. Processing.JS v1.4.1 is closer to Processing v1.5.1.
Good news is that random2D() is present in Processing.JS v1.4.8:
Processing.JS project is more or less halted, since they're focused on a true JS library now!
But eventually I hope Java Mode & JS Mode gonna have their API matched 100%! [-O<
And by some miracle, have more cross-mode libraries! But don't hold your breath! :-\"
Answers
Method random2D() is from Processing 2 series. Processing.JS v1.4.1 is closer to Processing v1.5.1.
Good news is that random2D() is present in Processing.JS v1.4.8:
Perhaps you can insert that implementation above and magically it starts to work in v1.4.1 too! (*)
Ah thank you! Will all of these methods be implemented into Processing.JS eventually?
Processing.JS project is more or less halted, since they're focused on a true JS library now!
But eventually I hope Java Mode & JS Mode gonna have their API matched 100%! [-O<
And by some miracle, have more cross-mode libraries! But don't hold your breath! :-\"
Cool. So where can I find out more about the true JS library project? Thank you!
It's called p5.js. Read this thread below:
http://forum.processing.org/two/discussion/6675/so-what-is-this-new-p5-js-and-the-differences-between-processing-js