SOURCE

console 命令行工具 X clear

                    
>
console
function draw() {
    const canvas = document.getElementById('canvas');
    if (canvas.getContext) {
        var ctx = canvas.getContext('2d');
        ctx.beginPath();
        ctx.moveTo(6.6545736888946, 23.4870023473147);
        ctx.lineTo(12.1718100049629, 22.0756163129716);
        ctx.lineTo(13.2624264860462, 30.2231629657701);
        ctx.lineTo(14.8662742523451, 23.3586945260108);
        ctx.lineTo(19.485355819286, 23.5511562579666);
        ctx.lineTo(15.7644290014725, 20.150998993413);
        ctx.lineTo(16.7267376612519, 15.8526869797318);
        ctx.lineTo(11.0170396132277, 15.7243791584279);
        ctx.lineTo(11.7227326303992, 19.6377677081973);
        ctx.lineTo(12.1718100049629, 22.0756163129716);
        ctx.lineTo(13.519042128654, 29.3891621272947);
        ctx.fill();
    }
}
<html>
  <body onload="draw();">
    <canvas id="canvas" width="150" height="150"></canvas>
  </body>
</html>
 canvas { border: 1px solid black; }