Skip to content

Instantly share code, notes, and snippets.

@edgalindo
Created November 20, 2016 00:27
Show Gist options
  • Select an option

  • Save edgalindo/79293271ada6e31939cc7145cfd46363 to your computer and use it in GitHub Desktop.

Select an option

Save edgalindo/79293271ada6e31939cc7145cfd46363 to your computer and use it in GitHub Desktop.
function setup() {
createCanvas(500, 500);
background(150);
var i = 0;
while (i < 500){
stroke(100);
line(i, i, width, i);
i = i + 2;
}
noStroke();
fill(150);
rect(200, 200, 100, 100);
var y = 200;
while (y < 300){
stroke(100);
line(y, y, y, 300);
y += 2;
}
}
function draw() {
}
function mousePressed(){
save('image.jpg');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment