企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ## Canvas ### 快速入门模板 ``` <canvas id="tutorial" width="300" height="300">你的浏览器不支持 canvas,请升级你的浏览器。</canvas> <script type="text/javascript"> function draw(){ var canvas = document.getElementById('tutorial'); if(!canvas.getContext) return; /** * @type CanvasRenderingContext2D */ var ctx = canvas.getContext("2d"); //开始代码 } draw(); </script> ``` ### 坐标空间 ![](https://www.runoob.com/wp-content/uploads/2018/12/Canvas_default_grid.png)