Created
November 18, 2016 10:41
-
-
Save paulinalinaa/e5da9b51fadc459a9811c8c90619adab to your computer and use it in GitHub Desktop.
design a word
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(500,500); | |
| colorMode(HSB,360,200,100,100); | |
| background(255); | |
| } | |
| var x = 1+2*2 | |
| var y = 5 | |
| var a = 1 | |
| var b = 2-3*5 | |
| var c = 5*5/2 | |
| function draw() { | |
| fill(random(a++),random(b++),random(c++)); | |
| ellipse(random(x++),random(y++),10,10); | |
| rect(random(x++*4),random(y++*4),10,10); | |
| if (x >= 500) { | |
| saveCanvas('out','png'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment