//Ty Van de Zande
//Section B
//ctv@andrew.cmu.edu
//Project-05
//canvas size
var cWid = 470;
var cHgt = 470;
//blockForm size
var wid = 50;
var hgt = 70;
//counter
var i = 0;
//some traits of circles and lines
var dia = wid;
var wght = 1;
//points shapes interact with
var xZero = 0;
var xOne = wid*.25;
var xTwo = wid*.5;
var xThree = wid*.75;
var xFour = wid;
var x = [xZero, xOne, xTwo, xThree, xFour];
var yZero = 0;
var yOne = hgt*.25;
var yTwo = hgt*.5;
var yThree = hgt*.75;
var yFour = hgt;
var y = [yZero, yOne, yTwo, yThree, yFour];
function setup() {
createCanvas(cWid, cHgt);
//splits canvas into cells for each pattern block
//x-axis
for(xOff=0; xOff<=cWid/wid; xOff++){
//y-axis
for(yOff=0; yOff<=cHgt/hgt*2; yOff++){
//calls helper function bg(), sends coordinates
draw(xOff, yOff);
}
}
}
function draw(xOff, yOff){
ellipseMode(CENTER);
stroke(200);
strokeWeight(1);
//
for(i=0; i<xOff; i++) {
for(j=0; j<yOff; j++){
//creates an offset variable for the shapes
var xOffset = i * xOne;
var yOffset = j * yFour;
strokeWeight(wght);
//rightDownLines
line(xOne + xOffset, yZero + yOffset, xFour + xOffset, yFour + yOffset);
//leftDownLines
line(xThree + xOffset, yZero + yOffset, xZero + xOffset, yFour + yOffset);
//verticalLines
line(xZero + xOffset*2, yZero + yOffset, xZero + xOffset*2, yFour + yOffset);
//horizontalLines
line(xZero + xOffset*4, yZero + yOffset/2, xFour + xOffset*4, yZero + yOffset/2);
//ellipses
noFill();
ellipseMode(CENTER);
ellipse(xZero + xOffset*4, yOne + yOffset+8, dia, dia);
}
}
}
This project is based around the Modernist movement (minus color). I am interested in proportions of shape and axis of movement within a static structure. This grid is loosely based on a project I am starting to work on for designing a typeface. Type has four major components: horizontal strokes, vertical strokes, diagonal strokes, and curves. This grid is a dissociation of those elements.