xxxxxxxxxx
function setup() {
createCanvas(600, 600);
colorMode(HSB,400);
frameRate(10);
}
function draw() {
background(0);
stroke(0,0,400,200)
strokeWeight(20)
noFill()
for(var j=0; j<600; j=j+50){
for(var i=0; i<600; i=i+50) {
if(random(2)>1){
arc(50+i, j, 50,50, HALF_PI, PI, OPEN)
arc(i, 50+j, 50,50, PI+HALF_PI, 0, OPEN)
}
else{
arc(i, j, 50,50,0, HALF_PI, OPEN)
arc(50 + i, 50 +j,50,50,PI,PI+HALF_PI,OPEN)
}
}
}
}