prisonerjohn / processing-web

0 stars 0 forks source link

[CLOSED] random2D() isn't implemented in PJS. #126

Open prisonerjohn opened 10 years ago

prisonerjohn commented 10 years ago

Issue by aengelke Thursday May 09, 2013 at 17:51 GMT Originally opened as https://github.com/processing/processing-web/issues/126


Affected examples

Define random2D()

PVector random2D() {
  float angle = random(0,1)*TWO_PI;
  return new PVector(cos(angle),sin(angle),0)
}

and change PVector.random2D(); to random2D();.

prisonerjohn commented 10 years ago

Comment by REAS Friday May 10, 2013 at 19:13 GMT


See issue processing/processing-web#131