Collage
var c;
var w = 586;
var h = 700;
var bg = [232,233,228];
var blue = [58,110,161];
var movingPoint = 0;
function setup() {
noStroke()
frameRate(2)
c = createCanvas(w, h);
background(bg);
cols = width / 6
rows = height / 5
colors=[
[241, 234, 226],
[46, 38, 35],
[156, 158, 154],
[232,229,222]
]
green=[93, 106, 91];
}
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() {
noStroke()
for(i= 0; i < 6; i++){
for (j = 0; j < 5; j++){
rand = Math.floor(Math.random() * colors.length )
if( i == 1 && j == 1 || i == 1 & j == 2){
fill(green)
rect( width/6*i, height/5*j, width/6, (height/5)/2)
fill(colors[rand])
rect( width/6*i, height/5*j + (height/5)/2, width/6, (height/5)/2)
}else{
fill(colors[rand])
rect( width/6*i, height/5*j, width/6, height/5)
}
}
}
}
A reinterpretation of Hans Arp, Sophie Taeuber-Arp's "Collage (Duo-Collage)" (1918)