1.0.4 • Published 3 years ago

@yareyaredesuyo/avatar-builder-style v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Usage

Install the DiceBear package and this Avatar styles with the following command.

npm install @dicebear/avatars @dicebear/my-avatar-style --save

Now you are ready to create your first Avatar.

import { createAvatar } from '@dicebear/avatars';
import * as style from '@dicebear/my-avatar-style';

let svg = createAvatar(style, {
  seed: 'custom-seed',
  // ... and other options
});

Options

All options from DiceBear and additionally the following:

body

type: array
allowed: 1, 2, 3, 4, 5, 6, 8
default: ['1', '2', '3', '4', '5', '6', '8']

top

type: array
allowed: 1, 2, 3, 4, 5, 6, 7, 8
default: ['1', '2', '3', '4', '5', '6', '7', '8']

accessories

type: array
allowed: earrings, mask, glasses
default: ['earrings', 'mask', 'glasses']

bodyColor

type: array
default: ['salmon']

topColor

type: array
default: ['white']

baseColor

type: array
default: ['black']

Build this package

npm run build

Test this package

npm run test
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago