Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NoiseLandscape
// See documentation @ https://processing.org/reference/noise_.html
float noiseScale = 0.02;
void setup() {
size(640, 360);
}
void draw() {
background(0);
for (int x=0; x < width; x++) {
float noiseVal = noise((x)*noiseScale, noiseScale);
stroke(255, 255, 255);
line(x, noiseVal*280, x, height);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.