Benoit Ricaud

Albers

var c; var w = 624; var h = 780; function setup() { frameRate(4) c = createCanvas(w, h); colors_top =[ [6,2,3], [109, 99, 90] ] colors_bottom =[ [71, 52, 38], [201, 195, 169] ] } function pattern(x, y) { noStroke() for(a = 0; a < 2; a++){ for (b = 0; b < 2; b++){ for (c=0; c < 2; c++){ fill(colors_top[Math.floor(Math.random() * colors_top.length )]) rect( x, y, width/12, width/12) fill(colors_top[Math.floor(Math.random() * colors_top.length )]) rect( x+ width/12, y, width/12, width/12) //2nd row fill(colors_bottom[Math.floor(Math.random() * colors_bottom.length )]) rect( x, y + width/12, width/12, width/12) fill(colors_bottom[Math.floor(Math.random() * colors_bottom.length )]) rect( x+ width/12, y + width/12, width/12, width/12) } } } } function draw() { noStroke() for(i= 0; i <6; i++){ for (j = 0; j < 7.5; j++){ pattern(width/6*i, height/7.5*j) } } }

An animated reinterpretation of Anni Albers' weaving "Black White Gray" (1927)