<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 案例3:繪制復雜圓形 先看圖: ![](https://img.kancloud.cn/46/90/4690be8951492160cc00e961f8ac0000_385x510.png) 相關代碼如下:‘ ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>canvas</title> </head> <body onload="draw('canvas')"> <canvas id="canvas" width="300" height="400"> 您的瀏覽器不支持 HTML5 canvas 標簽。 </canvas> <script> function draw(id) { var canvas = document.getElementById(id); //step1:獲取canvas元素 var context = canvas.getContext("2d"); //step2:內建的HTML5對象 context.fillStyle = "#eeeeef"; //step3-1:填充紅色 context.fillRect(0, 0, 300, 400); //step3-2:繪制矩形 context.beginPath(); //step4-1:開始繪圖 context.fillStyle = "rgb(100, 255, 100)"; //step4-2:設置繪圖科區域顏色 context.strokeStyle = "rgb(0, 0, 100)"; //step4-3:設置線條顏色 //step4-4:繪制貝塞爾曲線 var dx = 150; var dy = 150; var s = 100; var x = Math.sin(0); //初始值為0 var y = Math.cos(0); //初始值為1 var dig = Math.PI / 15 * 11; for (var i = 0; i < 30; i++) { //不斷地旋轉繪制線條 x = Math.sin(i * dig); y = Math.cos(i * dig); context.lineTo(dx + x * s, dy + y * s); } context.closePath(); //step4-5:結束繪圖 context.fill(); //step4-6:填充顏色 context.stroke(); //step4-7:繪制線條 } </script> </body> </html> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看