PageSourceSearch

https://nerdipedia.com/wiki/public/generated/js/vendor_dist/@dicebear/avataaars/lib/utils/getColors.js

js nerdipedia.com collected 2026-10-07 01:28:09 UTC 1,257 bytes, 19 lines download raw bytes

1/**
2 * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3 *
4 * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5 * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6 */
7import { convertColor } from './convertColor.js';
8export function getColors({ prng, options }) {
9    var _a, _b, _c, _d, _e, _f, _g;
10    return {
11        accessories: convertColor(prng.pick((_a = options.accessoriesColor) !== null && _a !== void 0 ? _a : [], 'transparent')),
12        clothes: convertColor(prng.pick((_b = options.clothesColor) !== null && _b !== void 0 ? _b : [], 'transparent')),
13        hat: convertColor(prng.pick((_c = options.hatColor) !== null && _c !== void 0 ? _c : [], 'transparent')),
14        hair: convertColor(prng.pick((_d = options.hairColor) !== null && _d !== void 0 ? _d : [], 'transparent')),
15        skin: convertColor(prng.pick((_e = options.skinColor) !== null && _e !== void 0 ? _e : [], 'transparent')),
16        facialHair: convertColor(prng.pick((_f = options.facialHairColor) !== null && _f !== void 0 ? _f : [], 'transparent')),
17        background: convertColor(prng.pick((_g = options.backgroundColor) !== null && _g !== void 0 ? _g : [], 'transparent')),
18    };
19}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.