@vechain/picasso
General purpose deterministic identity icon library in svg format, mostly for vechain thor addresses
Last updated 4 months ago by tony.li .
LGPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @vechain/picasso 
SYNC missed versions from official npm registry.

Picasso

npm version

General purpose deterministic identity icon library in svg format, mostly for vechain thor addresses.

sample

Install

By CDN

Picasso is available at jsDelivr, you can import it directly.

<script src="https://cdn.jsdelivr.net/npm/@vechain/picasso@2/dist/index.all.min.js"></script>

By NPM

# NPM
npm install --save @vechain/picasso

# Yarn
yarn add @vechain/picasso

Usage

import { picasso } from '@vechain/picasso' // not required if imported from script tag

const div = document.createElement("div")
const svg = picasso('0xf6e78a5584c06e2dec5c675d357f050a5402a730')
div.style.background = `no-repeat url('data:image/svg+xml;utf8,${svg}')`
div.style.height = '200px' 
div.style.width = '200px' 

document.body.appendChild(div);

License

picasso is licensed under the GNU Lesser General Public License v3.0, also included in LICENSE file in repository.

Current Tags

  • 2.0.1                                ...           latest (2 months ago)

5 Versions

  • 2.0.1                                ...           2 months ago
  • 2.0.0                                ...           4 months ago
  • 1.1.2                                ...           a year ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (6)

Copyright 2014 - 2017 © taobao.org |