xxxxxxxxxx
function setup() {createCanvas(600, 600);
background(255,255,255);
strokeWeight(0)
}
function draw() {
//左の黒身
fill(0,0,0)
quad(225,75,0,300,225,525,450,300);
//左の白身
fill(255,255,255)
quad(225,175,100,300,225,425,350,300);
//右の黒身
fill(0,0,0)
quad(375,75,150,300,375,525,600,300);
//右の白身
fill(255,255,255)
quad(375,175,250,300,375,425,500,300);
//真ん中、黒い線
fill(0,0,0)
strokeWeight(0)
beginShape()
vertex(225,425)
vertex(350,300)
vertex(225,175)
vertex(225,75)
vertex(450,300)
vertex(225,525)
endShape()
//真ん中、下白い線1
fill(255,255,255)
strokeWeight(0)
beginShape()
vertex(225,425)
vertex(225,405)
vertex(330,300)
vertex(350,300)
endShape()
//真ん中、下白い線2
fill(255,255,255)
strokeWeight(0)
beginShape()
vertex(225,525)
vertex(225,545)
vertex(470,300)
vertex(450,300)
endShape()
//真ん中、上白い線1
fill(255,255,255)
strokeWeight(0)
beginShape()
vertex(375,175)
vertex(250,300)
vertex(270,300)
vertex(375,195)
endShape()
//真ん中、上白い線2
fill(255,255,255)
strokeWeight(0)
beginShape()
vertex(375,75)
vertex(150,300)
vertex(130,300)
vertex(375,55)
endShape()
}