processing-docs
processing-docs copied to clipboard
Error in noise() example code in documentation
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);
...
}