PHP中文网2017-04-17 17:09:59
Canvas draws 2 semicircles on both sides according to the coordinates, and draws a rectangle in the middle
怪我咯2017-04-17 17:09:59
I can only say that cutting the image will save a lot of trouble. Cut the .9.png image. I have not tried the code implementation, so I will mark it first.
黄舟2017-04-17 17:09:59
pseudo code:
beginPath();
lineTo();
quadraticCurveTo();
lineTo();
quadraticCurveTo();
endPath();