Created
November 20, 2016 00:27
-
-
Save edgalindo/79293271ada6e31939cc7145cfd46363 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(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