Skip to content

Instantly share code, notes, and snippets.

@dimkir
Created October 18, 2013 10:12
Show Gist options
  • Save dimkir/7039433 to your computer and use it in GitHub Desktop.
Save dimkir/7039433 to your computer and use it in GitHub Desktop.
Created using Sketch2Tweet tool
float s=200, x, y, a=s, b;
void setup() {
size(400, 400);
colorMode(HSB, 255);
}
void draw() {
x=random(s*2);
y=random(s*2);
if (sq(x-s)+sq(y-s)<sq(s)) {
strokeWeight(random(2,8));
stroke(randomColor());
line(a, b, x, y);
a=x;
b=y;
}
}
color randomColor(){
return color((int)random(255), 255,255);
}
@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