<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          wz_jsgraphicsJavaScript繪圖庫

          聯(lián)合創(chuàng)作 · 2023-09-22 16:55

          wz_jsgraphics 是一個用來實現(xiàn)在Web頁面上繪制圖形的JavaScript庫。

          示例代碼:

          <script type="text/javascript">
          <!--
          function myDrawFunction()
          {
            jg_doc.setColor("#00ff00"); // green
            jg_doc.fillEllipse(100, 200, 100, 180); // co-ordinates related to the document
            jg_doc.setColor("maroon");
            jg_doc.drawPolyline(new Array(50, 10, 120), new Array(10, 50, 70));
            jg_doc.paint(); // draws, in this case, directly into the document

            jg.setColor("#ff0000"); // red
            jg.drawLine(10, 113, 220, 55); // co-ordinates related to "myCanvas"
            jg.setColor("#0000ff"); // blue
            jg.fillRect(110, 120, 30, 60);
            jg.paint();

            jg2.setColor("#0000ff"); // blue
            jg2.drawEllipse(10, 50, 30, 100);
            jg2.drawRect(400, 10, 100, 50);
            jg2.paint();
          }

          var jg_doc = new jsGraphics(); // draw directly into document
          var jg = new jsGraphics("myCanvas");
          var jg2 = new jsGraphics("anotherCanvas");

          myDrawFunction();

          //-->
          </script>

          瀏覽 25
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  日韩乱伦中字 | 午夜精品视频在线 | 国产午夜精品久久 | 亚洲无码制服 | 青娱网精品视频 |