Skip to content

Instantly share code, notes, and snippets.

@dimkir
Created October 17, 2013 02:19
Show Gist options
  • Save dimkir/7018297 to your computer and use it in GitHub Desktop.
Save dimkir/7018297 to your computer and use it in GitHub Desktop.
Created using Sketch2Tweet tool
int s=600;
int x, y;
int[] z= {
-4, 4
};
void setup() {
size(s, s);
colorMode(HSB,255);
background(0);
}
void draw() {
x+=8;
if (x>s) {
x=0;
y+=8;
}
stroke(randomColor());
strokeWeight(random(1,3));
line(x, y+z[mouseY%2], x+8, y+z[int(random(2))]);
}
color randomColor(){
return color(int(random(255)), 255,255);
}
@dimkir
Copy link
Author

dimkir commented Oct 17, 2013

This is comment which can show image of the sketch imge

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