@vechain/picasso
Version:
General purpose deterministic identity icon library in svg format, mostly for vechain thor addresses
47 lines (29 loc) • 1.15 kB
Markdown
[](https://badge.fury.io/js/%40vechain%2Fpicasso)
General purpose deterministic identity icon library in svg format, mostly for vechain thor addresses.

Picasso is available at [jsDelivr](https://www.jsdelivr.com/package/npm/@vechain/picasso), you can import it directly.
``` html
<script src="https://cdn.jsdelivr.net/npm/@vechain/picasso"></script>
```
``` bash
npm install --save @vechain/picasso
yarn add @vechain/picasso
```
``` javascript
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);
```
picasso is licensed under the [GNU Lesser General Public License v3.0](https://www.gnu.org/licenses/lgpl-3.0.html), also included in *LICENSE* file in repository.