Last active
November 20, 2016 15:56
-
-
Save josues/2ac7a2974d35a4265d5ffa5d860f2046 to your computer and use it in GitHub Desktop.
Design a Word - Joshua
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(220); | |
| var x = 20 | |
| var l = x; | |
| while (l < 500){ | |
| stroke(150); | |
| //strokeWeight(1.5); | |
| line(l, 100, 500-x, 50); | |
| l = l + x; | |
| } | |
| var i = x; | |
| while (i < 500){ | |
| stroke(100); | |
| //strokeWeight(2); | |
| line(i, 100, i, 300); | |
| i = i + x; | |
| } | |
| //var o = x*3; | |
| //var p = o*2 | |
| //while (o < 500){ | |
| // stroke(100); | |
| // strokeWeight(2); | |
| // line(o, 500, o, 0) | |
| // o = o + x*4; | |
| // p = p + x*4; | |
| //} | |
| //var k = x; | |
| //while (k < 500){ | |
| // stroke(100); | |
| // line(k, 300, 500-k, 400); | |
| // k = k + x; | |
| //} | |
| var m = x; | |
| var n = x; | |
| while (m < 500){ | |
| stroke(50); | |
| //strokeWeight(2.5); | |
| line(m, 300, n, 400); | |
| m = m + x; | |
| n = n + x*4 | |
| } | |
| var j = x; | |
| while (j < 500){ | |
| stroke(20); | |
| //strokeWeight(3); | |
| line(j, 400, j, 500); | |
| j = j + x*4; | |
| } | |
| } | |
| 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