Skip to content

Instantly share code, notes, and snippets.

@paulinalinaa
Last active December 9, 2016 19:11
Show Gist options
  • Select an option

  • Save paulinalinaa/57a0c62ddbdc7e880cd07ccce6abc370 to your computer and use it in GitHub Desktop.

Select an option

Save paulinalinaa/57a0c62ddbdc7e880cd07ccce6abc370 to your computer and use it in GitHub Desktop.
var noiseScale=0.5;
var noiseVal = noise((mouseX+x)*noiseScale, mouseY*noiseScale);
function setup() {
createCanvas(500, 500);
colorMode(RGB, 255, 255, 255, 100);
}
function draw() {
noFill();
colorMode(RGB, 255, 255, 255, 1);
background(255);
for (var x=0; x < width; x++) {
strokeWeight(2);
//stroke(255, 0 , 10, 0.3);
stroke(noiseVal*255);
fill(28,46,167);
ellipse(mouseX, mouseY, 40, 40);
fill(192,19,34);
rect((mouseX+x), random(450), 40, 40);
fill(255,234,1);
line((mouseX+x), random(200), 40, 40);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment