npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wx-art-qrcode

v1.0.2

Published

qrcode change to artqrcode

Downloads

2

Readme

wx-art-qrcode

预览地址: http://yating.online/art-qrcode/

艺术二维码生成原理https://blog.csdn.net/lemisi/article/details/88831289

艺术二维码插件:小程序版

git地址:https://github.com/Chenyating/art-qrcode

下载方式

npm i wx-art-qrcode

使用方法

<canvas class="qrcode" style="width:200px;height:200px" canvas-id="qrcode"></canvas>
// index.js
// 获取应用实例
import artqrcode from '../../utils/wx-art-qrcode.js';
Page({
  data: {
    imginfo: {
      eye: "../../img/eye.png", //必填
      one: "../../img/one.png", //必填
      tian: "../../img/tian.png", //可选
      col2: "../../img/col2.png", //可选
      col3: "../../img/col3.png", //可选
      col4: "../../img/col4.png", //可选
      row2: "../../img/row2.png", //可选
      row3: "../../img/row3.png", //可选
      row4: "../../img/row4.png", //可选
      re7: "../../img/re7.png", //可选
      po7: "../../img/po7.png", //可选
    },
    qrinfo: { //必填
      canvasid: 'qrcode',
      size: '200',
      text: '1',
    }
  },
  onLoad:function() {
    artqrcode(this.data.qrinfo, this.data.imginfo).then(() => {
      console.log("成功")
    }).catch(() => {
      console.log("失败")
    })
  }
})

艺术二维码插件:普通版

git地址:https://github.com/Chenyating/wx-art-qrcode

下载方式

npm i art-qrcode

使用方法

import "artQRCode.js";

var qrBox = new Vue({
    el: "#qrBox",
    data: { 
        imginfo: {
            eye: "./img/eye.png",//必填
            one: "./img/one.png",//必填
            tian: "./img/tian.png",//可选
            col2: "./img/col2.png",//可选
            col3: "./img/col3.png",//可选
            col4: "./img/col4.png",//可选
            row2: "./img/row2.png",//可选
            row3: "./img/row3.png",//可选
            row4: "./img/row4.png",//可选
            re7: "./img/re7.png",//可选
            po7: "./img/po7.png",//可选
        },
        qrinfo: {//必填
            canvasid: 'qrcode',
            size: '360',
            text: '1',
        },
    },
    mounted() {
        this.start();
    },
    methods: {
        start() {
           new artqrcode(this.qrinfo,this.imginfo).then(()=>{
               console.log("成功")
           }).catch(()=>{
               console.log("失败")
           })
        }
    }
});

设计指引

设计图片素材需循序规则设计:

建议最小单元one.png尺寸为:50*50px,分辨率:300像素.

以本网站为例:

img

注意:

其中:eye.png ,one.png两张图为必备图片。

元素图:

生成效果图:

工具

如果设计对你来说比较麻烦,欢迎使用我的小程序:二维艺术码。

image.png

可以在线生成艺术二维码,或解析黑白二维码为艺术二维码。

也可以自定义上传素材生成。

LICENSE

MIT