Created
April 19, 2016 14:56
-
-
Save nick3499/e5c2947fc828e9bbbe2beb6cb5cd29e6 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
| function setup() { | |
| createCanvas(720, 400); | |
| } | |
| function draw() { | |
| background(random(128, 255), random(128, 255), random(128, 255)); | |
| noStroke(0); | |
| for (var i = 0; i < 100; i++) { | |
| var x1 = random(0, width); | |
| var y1 = random(0, height); | |
| var x2 = random(0, width); | |
| var y2 = random(0, height); | |
| fill(random(0, 255), random(0, 255), random(0, 255), random(20, 120)); | |
| arc(x1, y1, x2, y2, PI / 2, PI); | |
| } | |
| frameRate(1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment