64 Tetrahedron

Rupert Russell

Ballarat, Australia

  • Available
    Products
    60
  • Artist
    Notes

Apparel

Cases & Skins

Wall Art

Home Decor

Accessories

Stationery

Artist's Description

Created with Processing
processing.org

int sWeight = 26;
int sideLength = 1368 ;
float xGridLength;
float triangleHeight = (sideLength / 2) * sqrt(3);
float yGridLength;

float[] xPoint = new float632;
float[] yPoint = new float600;

int countX;
int countY;

int xoffset;
int yoffset;

void setup() {
size(6876, 6876);
background(255);
stroke(0);
noLoop();
noFill();
strokeWeight(sWeight);
// strokeCap(SQUARE);
}

void draw() {

xGridLength = sideLength / 6;
yGridLength = triangleHeight / 3;

// Draw grid

for (float x = 0; x < width; x = x + xGridLength) {
countX = countX + 1;
for (float y = 0; y < height; y = y + yGridLength) {
countY = countY + 1;
// point(x, y); // draw points on the grid
xPoint[countX] = x;
yPoint[countY] = y;
}
}

line (xPoint16, yPoint2, xPoint4, yPoint14);
line (xPoint16, yPoint2, xPoint28, yPoint14);
line (xPoint28, yPoint14, xPoint4, yPoint14);

line (xPoint10, yPoint4, xPoint4, yPoint10);

line (xPoint4, yPoint10, xPoint6, yPoint12);
line (xPoint4, yPoint10, xPoint6, yPoint12);

line (xPoint4, yPoint10, xPoint7, yPoint11);
line (xPoint4, yPoint10, xPoint8, yPoint10);

line (xPoint4, yPoint6, xPoint6, yPoint8);
line (xPoint4, yPoint6, xPoint8, yPoint6);
line (xPoint4, yPoint6, xPoint7, yPoint7);

xoffset = 6;
yoffset = 2;

line (xPoint[4 + xoffset], yPoint[6 + yoffset], xPoint[6 + xoffset], yPoint[8 + yoffset]);
line (xPoint[4 + xoffset], yPoint[6 + yoffset], xPoint[8 + xoffset], yPoint[6 + yoffset]);
line (xPoint[4 + xoffset], yPoint[6 + yoffset], xPoint[7 + xoffset], yPoint[7 + yoffset]);

xoffset = 9;
yoffset = -1;

line (xPoint[4 + xoffset], yPoint[6 + yoffset], xPoint[6 + xoffset], yPoint[8 + yoffset]);
line (xPoint[4 + xoffset], yPoint[6 + yoffset], xPoint[8 + xoffset], yPoint[6 + yoffset]);
line (xPoint[4 + xoffset], yPoint[6 + yoffset], xPoint[7 + xoffset], yPoint[7 + yoffset]);

xoffset = 3;
yoffset = 5;

line (xPoint[4 + xoffset], yPoint[6 + yoffset], xPoint[6 + xoffset + 1], yPoint[8 + yoffset +1]);

line (xPoint[4 + xoffset], yPoint[6 + yoffset], xPoint[8 + xoffset], yPoint[6 + yoffset]);

line (xPoint[4 + xoffset], yPoint[6 + yoffset], xPoint[7 + xoffset], yPoint[7 + yoffset]);

line (xPoint12, yPoint12, xPoint10, yPoint14);
line (xPoint10, yPoint12, xPoint10, yPoint14);

line (xPoint22, yPoint12, xPoint22, yPoint14);
line (xPoint20, yPoint12, xPoint22, yPoint14);

stroke(255, 0, 0);

stroke(0, 0, 0);
line (xPoint7, yPoint7, xPoint11, yPoint7);
line (xPoint7, yPoint7, xPoint9, yPoint9);
line (xPoint7, yPoint7, xPoint10, yPoint8);

line (xPoint10, yPoint4, xPoint14, yPoint4);
line (xPoint10, yPoint4, xPoint12, yPoint6);
line (xPoint10, yPoint4, xPoint13, yPoint5);

line (xPoint18, yPoint4, xPoint22, yPoint4);
line (xPoint22, yPoint4, xPoint19, yPoint5);
line (xPoint22, yPoint4, xPoint20, yPoint6);

stroke(0, 0, 0);

yoffset = 3;
xoffset = 3;

line (xPoint[18 + xoffset], yPoint[4 + yoffset], xPoint[22 + xoffset], yPoint[4 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[19 + xoffset], yPoint[5 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[20 + xoffset], yPoint[6 + yoffset]);

yoffset = 6;
xoffset = 6;
line (xPoint[18 + xoffset], yPoint[4 + yoffset], xPoint[22 + xoffset], yPoint[4 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[19 + xoffset], yPoint[5 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[20 + xoffset], yPoint[6 + yoffset]);

yoffset = 1;
xoffset = -3;

line (xPoint[18 + xoffset -2], yPoint[4 + yoffset], xPoint[22 + xoffset], yPoint[4 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[19 + xoffset], yPoint[5 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[20 + xoffset], yPoint[6 + yoffset]);
stroke(0, 0, 0);

yoffset = 4;
xoffset = 0;
line (xPoint[18 + xoffset], yPoint[4 + yoffset], xPoint[22 + xoffset], yPoint[4 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[19 + xoffset], yPoint[5 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[20 + xoffset], yPoint[6 + yoffset]);

yoffset = 7;
xoffset = 3;
line (xPoint[18 + xoffset], yPoint[4 + yoffset], xPoint[22 + xoffset], yPoint[4 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[19 + xoffset], yPoint[5 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[20 + xoffset – 1], yPoint[6 + yoffset + 1]);

yoffset = 2;
xoffset = 6;
line (xPoint[18 + xoffset], yPoint[4 + yoffset], xPoint[22 + xoffset], yPoint[4 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[19 + xoffset], yPoint[5 + yoffset]);
line (xPoint[22 + xoffset], yPoint[4 + yoffset], xPoint[20 + xoffset], yPoint[6 + yoffset]);

// inner triangle

line (xPoint16, yPoint6, xPoint10, yPoint12);
line (xPoint16, yPoint6, xPoint22, yPoint12);
line (xPoint10, yPoint12, xPoint22, yPoint12);

// inner most triangle

line (xPoint13, yPoint9, xPoint19, yPoint9);
line (xPoint13, yPoint9, xPoint16, yPoint12);
line (xPoint16, yPoint12, xPoint19, yPoint9);

//

line (xPoint22, yPoint16, xPoint24, yPoint14);

stroke(0);

line (xPoint10, yPoint16, xPoint12, yPoint14);
line (xPoint10, yPoint16, xPoint8, yPoint14);
line (xPoint10, yPoint16, xPoint10, yPoint14);

xoffset = 6;
line (xPoint[10 + xoffset], yPoint16, xPoint[12 + xoffset], yPoint14);
line (xPoint[10 + xoffset], yPoint16, xPoint[8 + xoffset], yPoint14);
line (xPoint[10 + xoffset], yPoint16, xPoint[10 + xoffset], yPoint14);

xoffset = 12;
line (xPoint[10 + xoffset], yPoint16, xPoint[12 + xoffset], yPoint14);
line (xPoint[10 + xoffset], yPoint16, xPoint[8 + xoffset], yPoint14);
line (xPoint[10 + xoffset], yPoint16, xPoint[10 + xoffset], yPoint14);

xoffset = 6;
line (xPoint[10 + xoffset], yPoint18, xPoint[12 + xoffset], yPoint16);
line (xPoint[10 + xoffset], yPoint18, xPoint[8 + xoffset], yPoint16);
line (xPoint[10 + xoffset], yPoint18, xPoint[10 + xoffset], yPoint16);

stroke(0);

line (xPoint16, yPoint6, xPoint10, yPoint12);
line (xPoint16, yPoint6, xPoint22, yPoint12);
line (xPoint10, yPoint12, xPoint22, yPoint12);

line (xPoint22, yPoint4, xPoint28, yPoint10);
line (xPoint10, yPoint16, xPoint22, yPoint16);

line (xPoint16, yPoint12, xPoint16, yPoint14);
line (xPoint14, yPoint12, xPoint16, yPoint14);
line (xPoint18, yPoint12, xPoint16, yPoint14);

line (xPoint16, yPoint10, xPoint19, yPoint9);
line (xPoint16, yPoint10, xPoint13, yPoint9);
line (xPoint16, yPoint10, xPoint16, yPoint12);

save(“star2.png”);
exit();
}

desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait
desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait