xxxxxxxxxx
30
function setup() {
createCanvas(400, 300);
background(255);
line(0,height/2,width,height/2);
line(width/2,0,width/2,height);
line(width/2-1,height/4,width/2+1,height/4);
text("1",width/2-33,height/4-5)
line(width/2-35,height/4,width/2-20,height/4)
text("b-a",width/2-35,height/4+10)
line(width/2-1,3*height/4,width/2+1,3*height/4);
line(width/2-1,height/4,width/2+1,height/4);
line(width/2+75,height/2-1,width/2+75,height/2+1);
line(width/2-height/4,height/2-1,width/2-height/4,height/2+1);
line(width/2-2*height/4,height/2-1,width/2-2*height/4,height/2+1);
line(width/2+height/4,height/2-1,width/2+height/4,height/2+1);
line(width/2+2*height/4,height/2-1,width/2+2*height/4,height/2+1);
text('b',width/2+2*height/4,height/2+10)
text('a',width/2+2*height/4-75,height/2+10)
translate(75,0)
strokeWeight(4);
stroke(color(128,0,128,150));
line(-75,height/2,width/2,height/2);
line(width/2,height/2-height/4,width/2+height/4,height/2-height/4);
line(width/2+height/4,height/2,width,height/2);
}
function draw() {
}