processing-docs icon indicating copy to clipboard operation
processing-docs copied to clipboard

Error in noise() example code in documentation

Open j-siderius opened this issue 4 years ago • 0 comments

Issue description

Small error in example code, the example contains two void draw()s, instead of one void start() and one void draw(). Proposed fix is to modify the first void draw() to void setup(). This fix has been tested and the code is working after changing this.

URL(s) of affected page(s)

https://processing.org/reference/noise_.html

Proposed fix

...
void setup() { //this line got changed from void draw()
  background(204);
...
}
float noiseScale = 0.02;

void draw() {
  background(0);
...
}

j-siderius avatar May 01 '21 15:05 j-siderius