SOURCE

console 命令行工具 X clear

                    
>
console
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>环形文字(1024节日快乐)</title>
</head>
<body>
<canvas id='canvas' width="400" height="300">canvas not supports</canvas>
</body>
<script>

     let canvas = new fabric.Canvas('canvas')
    console.log(canvas)
    const rect =  new fabric.Rect({

           left:100,//距离画布左侧的距离,单位是像素

           top:100,//距离画布上边的距离

           fill:'red',//填充的颜色

           width:30,//方形的宽度

          height:30//方形的高度

       });
    canvas.add(rect);
</script>
</html>

本项目引用的自定义外部资源