processing / processing/processing-website

Error in noise() example code in documentation

Open
#369 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MDX
Stars
90
Forks
122
Avg merge
1h 43m
Merged PRs (30d)
3

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the affected noise() reference page at https://processing.org/reference/noise_.html and inspect its example code. Change the first duplicate void draw() declaration to void setup(), then verify that the example contains one setup() and one draw() and remains working as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.