Skip to content

Instantly share code, notes, and snippets.

@dimkir
Created October 18, 2013 06:12
Show Gist options
  • Save dimkir/7037176 to your computer and use it in GitHub Desktop.
Save dimkir/7037176 to your computer and use it in GitHub Desktop.
Created using Sketch2Tweet tool
int s=600;
int h=1;
void setup() {
size(s, s);
stroke(0);
colorMode(HSB, 255);
}
void draw() {
fade(#FFFFFF, 15);
if (h<s) {
translate(random(s), random(s));
rotate(h);
strokeWeight(random(1,5));
stroke(randomColor());
line(random(-250,0), -mouseY, 0, random(0,mouseX));
h++;
}
else{
h = 0;
}
}
void fade(color k, int alphaByte){
pushStyle();
fill(k, alphaByte);
noStroke();
rect(0,0,width, height);
popStyle();
}
color randomColor(){
return color((int)random(255), 255,255);
}
@dimkir
Copy link
Author

dimkir commented Oct 18, 2013

This is comment which can show image of the sketch imge

@dimkir
Copy link
Author

dimkir commented Oct 18, 2013

This is comment with sketch screenshot url: imge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment