Benoit Ricaud

Taeuber

var c; var w = 586; var h = 700; var bg = [232, 233, 228]; var blue = [58, 110, 161]; var movingPoint = 0; function setup() { noLoop() c = createCanvas(w, h); rectMode(CENTER); background(bg); cols = width / 4 rows = height / 4 colors = [ [86, 140, 228], [201, 36, 42], [57, 87, 49], [235, 201, 6], [183, 68, 137], [90, 75, 156], [230, 119, 14] ] rand_left = Math.floor(Math.random() * colors.length) rand_right = Math.floor(Math.random() * colors.length) } function base() { strokeWeight(2) line(0, h / 2, w, h / 2) push() translate(-w / 2, -h / 2) line(w / 2, 0, w / 2, h) rotate(radians(16.67)) pop() } function pattern(x, y) { noStroke() rect((height / 2) - 10, width / 6, ) } function draw() { movingPoint = 106; strokeWeight(2) line(0, h / 2, w, h / 2) push() noStroke() translate(w / 2, h / 2) fill(202, 74, 75) triangle(0, 0, 0, -h / 2, movingPoint, -h / 2) fill(58, 110, 161) triangle(0, 0, 0, h / 2, -movingPoint, h / 2) pop() // // push() translate(w / 2, h / 2) strokeWeight(1) rotate(radians(17)) line(0, -h, 0, h * 2) pop() }

A reinterpretation of Sophie Taeuber-Arp's "Two Triangles*" (1931)