Skip to content

Error in noise() example code in documentation #369

@j-siderius

Description

@j-siderius

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);
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions