Perlin Hoodies
Description: //Created by Aaron Ti //Terrain Generator using Perlin Noise in 3D int cols, rows; int scl = 25; int w = 3000; int h = 3000; float n = 0.02; float m = 0; float moveS = 0; float moveW = 0; float[][] terrain; void setup() { size(2200, 1100, P3D); cols = w/scl; rows = h/scl; terrain = new float[cols][rows]; } void draw() { float yoff = moveW; for (int y = 0; y < rows; y++) { float xoff = moveS; for (int x =0; x < cols; x++) { terrain[x][y] = map(noise(xoff, yoff), 0, 1, -100, 100); xoff += m; } yoff += m; } /* moveW += n; moveS += n; */ background(0); stroke(255); noFill(); //use mouse to rotate translate(width/2, height/2); rotat...