I was trying to create intricate spaces reminiscent of a stained glass window taken to the extreme.
//Arula Ratnakar
//SectionC
//aratnaka@andrew.cmu.edu
//String Art
var y = 640
yTwo=0
var xStep = 50
function setup() {
createCanvas(480,640);
background('lightblue');
}
function draw() {
for (var i = 20; i< 480; i+=20)
line(width/2,0, i, y )
for (var i = 20; i<480; i+=20)
line (width/2, 640, i, yTwo)
for (var i = 20; i <640; i+=20)
line (0, height/2, 480, i)
for (var i = 20; i<640; i+=20)
line (480, height/2, 0, i)
for (var i = 20; i<640; i+=20)
line (0, 0, 480, i)
for (var i = 20; i<640; i+=20)
line (480, 0, 0, i)
for (var i = 20; i<640; i+=20)
line (0, 640, 480, i)
for (var i = 20; i<640; i+=20)
line (480,640, 0, i)
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>p5.js vers 0.5.2, Edit index.html to Change This Title</title>
<script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.js"></script>
<!-- Uncomment the lines below to include extra p5 libraries, or
use template-all or template-all-min:
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.sound.js"></script>
-->
<script src="sketch.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>