Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let noiseVal;
- let noiseVal2;
- let noiseVal3;
- let noiseScale = 0.02;
- let noiseScale2 = 0.05;
- let noiseScale3 = 0.08;
- function setup() {
- createCanvas(640, 360);
- //colorMode(HSB);
- background(0);
- // Draw the left half of image
- // Draw the right half of image
- let xoff = 0.0;
- for (let x = 0; x < width; x++) {
- let yoff = 0.0;
- for (let y = 0; y < width; y++) {
- // noiceDetail of the pixels octave count and falloff value
- noiseDetail(5, 0.5);
- noiseVal = noise((xoff + x) * noiseScale, (yoff + y) * noiseScale);
- noiseVal2 = noise((xoff + 1000) * noiseScale, (yoff + 500) * noiseScale);
- noiseVal3 = noise((xoff + 2000) * noiseScale, (yoff + 4000) * noiseScale);
- //console.log(noiseVal);
- //console.log(noiseVal2);
- stroke(noiseVal * 255, noiseVal2 * 255, noiseVal3 * 255);
- point(x, y);
- yoff+=0.1;
- }
- xoff+=0.1;
- }
- //Show the details of two partitions
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement