Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@vechain/picasso

1.1.2 • Public • Published

Picasso

npm version

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

sample

Install

# NPM
npm install --save @vechain/picasso
 
# Yarn
yarn add @vechain/picasso

Usage

Vanilla JS

 
import { picasso } from '@vechain/picasso'
 
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.

Install

npm i @vechain/[email protected]

Version

1.1.2

License

LGPL-3.0

Unpacked Size

93.7 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar