UNPKG

@fourite/avtr

Version:

Avataaars avatar style for fourite web

21 lines (20 loc) 1.27 kB
/** * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma. * * Plugin: https://www.figma.com/community/plugin/1005765655729342787 * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h */ import { convertColor } from './convertColor.js'; export function getColors({ prng, options }) { var _a, _b, _c, _d, _e, _f, _g; return { 'accessories': convertColor(prng.pick((_a = options.accessoriesColor) !== null && _a !== void 0 ? _a : [], 'transparent')), 'clothes': convertColor(prng.pick((_b = options.clothesColor) !== null && _b !== void 0 ? _b : [], 'transparent')), 'hat': convertColor(prng.pick((_c = options.hatColor) !== null && _c !== void 0 ? _c : [], 'transparent')), 'hair': convertColor(prng.pick((_d = options.hairColor) !== null && _d !== void 0 ? _d : [], 'transparent')), 'skin': convertColor(prng.pick((_e = options.skinColor) !== null && _e !== void 0 ? _e : [], 'transparent')), 'facialHair': convertColor(prng.pick((_f = options.facialHairColor) !== null && _f !== void 0 ? _f : [], 'transparent')), 'background': convertColor(prng.pick((_g = options.backgroundColor) !== null && _g !== void 0 ? _g : [], 'transparent')), }; } ;