@dicebear/miniavs
Version:
Avatar style for DiceBear
16 lines (15 loc) • 735 B
JavaScript
/**
* 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/Vh7N9shKJTNHNo9prUzkZe
*/
import { convertColor } from './convertColor.js';
export function getColors({ prng, options }) {
var _a, _b, _c;
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')),
body: convertColor(prng.pick((_c = options.bodyColor) !== null && _c !== void 0 ? _c : [], 'transparent')),
};
}