Created
October 15, 2013 22:04
-
-
Save dimkir/6999375 to your computer and use it in GitHub Desktop.
Created using Sketch2Tweet tool
This file contains 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
void setup() { | |
size(800, 600); | |
fill(255, 9); | |
colorMode(HSB, 255); | |
} | |
void draw() { | |
fill(255,3); | |
rect(0, 0, 800, 600); | |
fill(randomColor()); | |
float r=random(-50, 50); | |
rect(mouseX+r, mouseY+(sin(r)*50), r, r); | |
} | |
color randomColor(){ | |
return color(random(255), 255,255, 20); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is comment which can show image of the sketch