1.0.4 • Published 3 years ago
@yareyaredesuyo/avatar-builder-style v1.0.4
Usage
Install the DiceBear package and this Avatar styles with the following command.
npm install @dicebear/avatars @dicebear/my-avatar-style --saveNow 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 buildTest this package
npm run test