Last active
December 9, 2016 19:11
-
-
Save paulinalinaa/57a0c62ddbdc7e880cd07ccce6abc370 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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