Red & Yellow Truchet

Rupert Russell

Ballarat, Australia

  • Available
    Products
    57
  • Artist
    Notes

Apparel

Cases & Skins

Wall Art

Home Decor

Accessories

Stationery

Artist's Description

Post Production with Phtoshop

// Truchet Tiles
// 25 August 2018
// rupert russell
// v007

int tileSize = 100;
int canvasSize = 7700;
float tileType = 0;
float a, b, c, d, start, stop;

void setup() {
background(255);
size(7700, 7700);
noLoop();
noFill();
strokeWeight(10);
}

void draw() {

for (int i = 0; i < canvasSize; i = i + tileSize) {
for (int j = 0; j < canvasSize; j = j + tileSize) {

tileType = random(0, 1);
if (tileType > 0.5) {

// type 1

strokeWeight(0.5);
// rect(i, j, tileSize, tileSize);
strokeWeight(10);
a = i;
b = j;
c = tileSize;
d = tileSize;
start = radians(0);
stop = radians(90);
arc(a, b, c, d, start, stop);

a = i + tileSize;
b = j + tileSize;
start = radians(180);
stop = radians(270);
arc(a, b, c, d, start, stop);
} else {

// type 2

strokeWeight(0.5);
// rect(i, j, tileSize, tileSize);
strokeWeight(10);
a = i + tileSize;
b = j;
c = tileSize;
d = tileSize;
start = radians(90);
stop = radians(180);
arc(a, b, c, d, start, stop);

a = i ;
b = j + tileSize;
start = radians(270);
stop = radians(360);
arc(a, b, c, d, start, stop);
}
}
}
save(“Truchet.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