Benoit Ricaud

Contra

W = 600 H = W G = 1.618 setup=()=>{ frameRate(10) D = sqrt(pow(W,2) + pow(H,2)) //noLoop() createCanvas(W, H) colorMode(HSB) angleMode(RADIANS) background(172,4,77) } draw=()=>{ noStroke() c=(h,s,l)=>{ return fill(h,s,l) } //red push() translate(W/2.2625,H/1.785) rotate(-HALF_PI/2 ) c(2,80,70) scale(G*2) beginShape(TRIANGLES) vertex(0,0) vertex(W,0) vertex(0,H) endShape() pop() //blk push() translate(-75,-75) //rotate(-HALF_PI/2) scale(1.125) c(320,50,0) beginShape(TRIANGLES) vertex(W/2,0) vertex(W/2,H) vertex(0,H/2) endShape() pop() //yellow push() translate(130,H+20) rotate(PI) scale(0.5) c(50,61,85) beginShape(TRIANGLES) vertex(W/2,0) vertex(W/2,H) vertex(0,H/2) endShape() pop() //wht push() scale(0.625) translate(120,-60) c(60,3,87) beginShape(TRIANGLES) vertex(W/2,0) vertex(W/2,H) vertex(W,H/2) endShape() pop() }

A reinterpretation of Theo Van Doesburg "Contra-Compositie XIII" (1924)