UNPKG

@dicebear/adventurer

Version:

Avatar style for DiceBear

15 lines (14 loc) 615 B
/** * 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/XXfL2r5Wylk623KpxDt7gO */ import { convertColor } from './convertColor.js'; export function getColors({ prng, options }) { var _a, _b; return { skin: convertColor(prng.pick((_a = options.skinColor) !== null && _a !== void 0 ? _a : [], 'transparent')), hair: convertColor(prng.pick((_b = options.hairColor) !== null && _b !== void 0 ? _b : [], 'transparent')), }; }