Created
November 19, 2016 19:15
-
-
Save edgalindo/4f8070e9a3bb03b7f844e171c66f7832 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function setup() { | |
| createCanvas(500,500); | |
| background(255) | |
| for(var i = 0; i <150; i +=10){ | |
| line(i, 0, 250, 500); | |
| line(width, 0, i, height); | |
| line(i, 0, height, height/2); | |
| line(width, height/2, i, 500); | |
| line(width/2, 500, width, i); | |
| line(i,0, 500, height); | |
| } | |
| } | |
| 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