ArtQRCode艺术二维码生成js插件

ArtQRCode 是基于 qrcode.js 的封装,支持以图片元素为基本单元的二维码绘制。


<div id="qrcode"></div>
<script>
    var options = {
        text: "https://github.com/252860883/ArtQRCode",
        width: 500,
        height: 500,
        codeWidth: 320,
        codeHeight: 320,
        top: 85,
        left: 80,
        /**
         * materials unit options
         */
        materials: {
            border: "./materials/electron/border.png",
            eye: "./materials/electron/eye.png",
            row4: "./materials/electron/row4.png",
            col4: "./materials/electron/col3.png",
            row2col3: "./materials/electron/row2col3.png",
            row3col2: "./materials/electron/row3col2.png",
            col3: ["./materials/electron/col3.png", "./materials/electron/col3_2.png"],
            row2col2: "./materials/electron/row2col2.png",
            corner: "./materials/electron/corner.png",
            row2: ["./materials/electron/row2.png", "./materials/electron/row2_2.png"],
            col2: "./materials/electron/col2.png",
            single: ["./materials/electron/single.png", "./materials/electron/single_2.png"],
        }
    }
   /**
    * when the artqrcode loaded, run this function
    */
    function callBack(status) {
        console.log(status) // [loaded|success]
    }
    var qrcode = new QRCode(document.getElementById("qrcode"), options, callBack);
</script>
68747470733a2f2f7778312e73696e61696d672e636e2f6c617267652f61373362633661316c7931673770736537706466376a32326478306c336165322e6a7067.jpg


687474703a2f2f7778322e73696e61696d672e636e2f6c617267652f61373362633661316c7931666d657964747a346a656a32316b7730717a677a362e6a7067.jpg






  文件名稱:ArtQRCode

  更新時間:2019-12-03 20:40:29

  下載声明:本站默認解壓密碼(www.aeink.com)網絡資源來自網絡收集或本人原創,轉載請註明出處!若資源侵犯了你的版權,請聯繫博主,我們會在24H內刪除侵權資源!

立即下載

转载请注明出处 AE博客|墨渊 » ArtQRCode艺术二维码生成js插件

相关推荐

发表评论

路人甲

网友评论(1)

谢谢分享
手赚下载吧 1周前 (2019-12-04) 回复