@dicebear/pixel-art-neutral 4.9.0 → 4.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{license.md → LICENSE} +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +86 -188
- package/dist/index.js +87 -189
- package/dist/index.umd.js +3 -3
- package/package.json +4 -4
package/{license.md → LICENSE}
RENAMED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Code licensed under MIT License.
|
|
5
5
|
* Copyright (c) 2021 Florian Körner
|
|
6
6
|
*
|
|
7
|
-
* Design "
|
|
7
|
+
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
8
8
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
declare let create: import("@dicebear/avatars").StyleCreate<import("./options").Options>, meta: import("@dicebear/avatars").StyleMeta, schema: import("json-schema").JSONSchema7;
|
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { utils } from '@dicebear/avatars';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const schema$1 = {
|
|
4
4
|
"title": "Options",
|
|
5
5
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
6
6
|
"properties": {
|
|
@@ -115,175 +115,69 @@ var schema$1 = {
|
|
|
115
115
|
"additionalProperties": false
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
'variant13':
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
'
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
'
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
'
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
'
|
|
132
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
133
|
-
},
|
|
134
|
-
'variant08': function variant08(components, colors) {
|
|
135
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
136
|
-
},
|
|
137
|
-
'variant07': function variant07(components, colors) {
|
|
138
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n";
|
|
139
|
-
},
|
|
140
|
-
'variant06': function variant06(components, colors) {
|
|
141
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
142
|
-
},
|
|
143
|
-
'variant05': function variant05(components, colors) {
|
|
144
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
145
|
-
},
|
|
146
|
-
'variant04': function variant04(components, colors) {
|
|
147
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
148
|
-
},
|
|
149
|
-
'variant03': function variant03(components, colors) {
|
|
150
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/>\n<path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n";
|
|
151
|
-
},
|
|
152
|
-
'variant02': function variant02(components, colors) {
|
|
153
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n<path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n";
|
|
154
|
-
},
|
|
155
|
-
'variant01': function variant01(components, colors) {
|
|
156
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/>\n<path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/>\n<path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n";
|
|
157
|
-
}
|
|
118
|
+
const eyes = {
|
|
119
|
+
'variant13': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
120
|
+
'variant12': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/>\n</g>\n",
|
|
121
|
+
'variant11': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
122
|
+
'variant10': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
123
|
+
'variant09': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
124
|
+
'variant08': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
125
|
+
'variant07': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n",
|
|
126
|
+
'variant06': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
127
|
+
'variant05': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
128
|
+
'variant04': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
129
|
+
'variant03': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/>\n<path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n",
|
|
130
|
+
'variant02': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n<path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n",
|
|
131
|
+
'variant01': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/>\n<path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/>\n<path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n"
|
|
158
132
|
};
|
|
159
133
|
|
|
160
|
-
|
|
161
|
-
'variant13':
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
'
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
'
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
'
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
'
|
|
174
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
175
|
-
},
|
|
176
|
-
'variant08': function variant08(components, colors) {
|
|
177
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
178
|
-
},
|
|
179
|
-
'variant07': function variant07(components, colors) {
|
|
180
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
181
|
-
},
|
|
182
|
-
'variant06': function variant06(components, colors) {
|
|
183
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
184
|
-
},
|
|
185
|
-
'variant05': function variant05(components, colors) {
|
|
186
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
187
|
-
},
|
|
188
|
-
'variant04': function variant04(components, colors) {
|
|
189
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
190
|
-
},
|
|
191
|
-
'variant03': function variant03(components, colors) {
|
|
192
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
193
|
-
},
|
|
194
|
-
'variant02': function variant02(components, colors) {
|
|
195
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
196
|
-
},
|
|
197
|
-
'variant01': function variant01(components, colors) {
|
|
198
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
199
|
-
}
|
|
134
|
+
const eyebrows = {
|
|
135
|
+
'variant13': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
136
|
+
'variant12': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
137
|
+
'variant11': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
138
|
+
'variant10': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
139
|
+
'variant09': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
140
|
+
'variant08': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
141
|
+
'variant07': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
142
|
+
'variant06': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
143
|
+
'variant05': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
144
|
+
'variant04': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
145
|
+
'variant03': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
146
|
+
'variant02': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
147
|
+
'variant01': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n")
|
|
200
148
|
};
|
|
201
149
|
|
|
202
|
-
|
|
203
|
-
'surprised03':
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
'
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
'
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
'
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
'
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
'
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
'
|
|
222
|
-
|
|
223
|
-
},
|
|
224
|
-
'happy04': function happy04(components, colors) {
|
|
225
|
-
return "\n<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
226
|
-
},
|
|
227
|
-
'happy03': function happy03(components, colors) {
|
|
228
|
-
return "\n<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
229
|
-
},
|
|
230
|
-
'happy02': function happy02(components, colors) {
|
|
231
|
-
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>\n");
|
|
232
|
-
},
|
|
233
|
-
'happy01': function happy01(components, colors) {
|
|
234
|
-
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
235
|
-
},
|
|
236
|
-
'sad08': function sad08(components, colors) {
|
|
237
|
-
return "\n<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
238
|
-
},
|
|
239
|
-
'sad07': function sad07(components, colors) {
|
|
240
|
-
return "\n<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
241
|
-
},
|
|
242
|
-
'sad06': function sad06(components, colors) {
|
|
243
|
-
return "\n<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
244
|
-
},
|
|
245
|
-
'sad05': function sad05(components, colors) {
|
|
246
|
-
return "\n<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
247
|
-
},
|
|
248
|
-
'sad04': function sad04(components, colors) {
|
|
249
|
-
return "\n<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
250
|
-
},
|
|
251
|
-
'sad03': function sad03(components, colors) {
|
|
252
|
-
return "\n<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
253
|
-
},
|
|
254
|
-
'sad02': function sad02(components, colors) {
|
|
255
|
-
return "\n<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
256
|
-
},
|
|
257
|
-
'sad01': function sad01(components, colors) {
|
|
258
|
-
return "\n<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
259
|
-
},
|
|
260
|
-
'surprised01': function surprised01(components, colors) {
|
|
261
|
-
return "\n<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>\n";
|
|
262
|
-
}
|
|
150
|
+
const mouth$1 = {
|
|
151
|
+
'surprised03': (components, colors) => "\n<path d=\"M9 12v2h2v-2H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
152
|
+
'surprised02': (components, colors) => "\n<path d=\"M9 13v1h1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
153
|
+
'happy09': (components, colors) => "\n<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
154
|
+
'happy08': (components, colors) => "\n<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
155
|
+
'happy07': (components, colors) => "\n<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
156
|
+
'happy06': (components, colors) => "\n<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
|
|
157
|
+
'happy05': (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
158
|
+
'happy04': (components, colors) => "\n<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
159
|
+
'happy03': (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
160
|
+
'happy02': (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>\n"),
|
|
161
|
+
'happy01': (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
|
|
162
|
+
'sad08': (components, colors) => "\n<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
163
|
+
'sad07': (components, colors) => "\n<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
164
|
+
'sad06': (components, colors) => "\n<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
165
|
+
'sad05': (components, colors) => "\n<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
166
|
+
'sad04': (components, colors) => "\n<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
167
|
+
'sad03': (components, colors) => "\n<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
168
|
+
'sad02': (components, colors) => "\n<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
169
|
+
'sad01': (components, colors) => "\n<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
170
|
+
'surprised01': (components, colors) => "\n<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>\n"
|
|
263
171
|
};
|
|
264
172
|
|
|
265
|
-
|
|
266
|
-
'variant07':
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
'
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
'
|
|
273
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
274
|
-
},
|
|
275
|
-
'variant04': function variant04(components, colors) {
|
|
276
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
277
|
-
},
|
|
278
|
-
'variant03': function variant03(components, colors) {
|
|
279
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/>\n<path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
280
|
-
},
|
|
281
|
-
'variant02': function variant02(components, colors) {
|
|
282
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
283
|
-
},
|
|
284
|
-
'variant01': function variant01(components, colors) {
|
|
285
|
-
return "\n<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
286
|
-
}
|
|
173
|
+
const glasses$1 = {
|
|
174
|
+
'variant07': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 10V7h3v3h-3Zm-1-4v1H9l-.036-1H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
175
|
+
'variant06': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
176
|
+
'variant05': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
177
|
+
'variant04': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
178
|
+
'variant03': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/>\n<path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
179
|
+
'variant02': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
180
|
+
'variant01': (components, colors) => "\n<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n")
|
|
287
181
|
};
|
|
288
182
|
|
|
289
183
|
var components = /*#__PURE__*/Object.freeze({
|
|
@@ -295,9 +189,9 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
295
189
|
});
|
|
296
190
|
|
|
297
191
|
function pickComponent(prng, group) {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
192
|
+
let values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
193
|
+
const componentCollection = components;
|
|
194
|
+
const key = prng.pick(values);
|
|
301
195
|
|
|
302
196
|
if (componentCollection[group][key]) {
|
|
303
197
|
return {
|
|
@@ -309,7 +203,7 @@ function pickComponent(prng, group) {
|
|
|
309
203
|
}
|
|
310
204
|
}
|
|
311
205
|
|
|
312
|
-
|
|
206
|
+
const skin = {
|
|
313
207
|
'variant01': 'rgba(255, 219, 172, 1)',
|
|
314
208
|
'variant02': 'rgba(245, 207, 160, 1)',
|
|
315
209
|
'variant03': 'rgba(234, 195, 147, 1)',
|
|
@@ -320,7 +214,7 @@ var skin = {
|
|
|
320
214
|
'variant08': 'rgba(141, 85, 36, 1)'
|
|
321
215
|
};
|
|
322
216
|
|
|
323
|
-
|
|
217
|
+
const hair = {
|
|
324
218
|
'variant01': 'rgba(202, 177, 136, 1)',
|
|
325
219
|
'variant02': 'rgba(167, 137, 97, 1)',
|
|
326
220
|
'variant03': 'rgba(131, 98, 59, 1)',
|
|
@@ -333,14 +227,14 @@ var hair = {
|
|
|
333
227
|
'variant10': 'rgba(40, 21, 10, 1)'
|
|
334
228
|
};
|
|
335
229
|
|
|
336
|
-
|
|
230
|
+
const mouth = {
|
|
337
231
|
'variant01': 'rgba(210, 153, 133, 1)',
|
|
338
232
|
'variant02': 'rgba(201, 130, 118, 1)',
|
|
339
233
|
'variant03': 'rgba(227, 93, 106, 1)',
|
|
340
234
|
'variant04': 'rgba(222, 15, 13, 1)'
|
|
341
235
|
};
|
|
342
236
|
|
|
343
|
-
|
|
237
|
+
const glasses = {
|
|
344
238
|
'green01': 'rgba(95, 112, 92, 1)',
|
|
345
239
|
'blue01': 'rgba(67, 103, 125, 1)',
|
|
346
240
|
'red01': 'rgba(160, 75, 93, 1)',
|
|
@@ -360,20 +254,20 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
360
254
|
function pickColor(prng, group, values) {
|
|
361
255
|
var _colorCollection$grou;
|
|
362
256
|
|
|
363
|
-
|
|
257
|
+
const colorCollection = colors;
|
|
364
258
|
|
|
365
259
|
if (values.length === 0) {
|
|
366
260
|
values.push('transparent');
|
|
367
261
|
}
|
|
368
262
|
|
|
369
|
-
|
|
263
|
+
const key = prng.pick(values);
|
|
370
264
|
return {
|
|
371
265
|
name: key,
|
|
372
266
|
value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
|
|
373
267
|
};
|
|
374
268
|
}
|
|
375
269
|
|
|
376
|
-
|
|
270
|
+
const style = {
|
|
377
271
|
meta: {
|
|
378
272
|
title: 'Pixel Art - Neutral',
|
|
379
273
|
creator: 'Plastic Jam',
|
|
@@ -383,27 +277,29 @@ var style = {
|
|
|
383
277
|
}
|
|
384
278
|
},
|
|
385
279
|
schema: schema$1,
|
|
386
|
-
create:
|
|
280
|
+
create: _ref => {
|
|
387
281
|
var _options$hairColor, _options$mouthColor, _options$glassesColor, _components$eyes$valu, _components$eyes, _components$eyebrows$, _components$eyebrows, _components$mouth$val, _components$mouth, _components$glasses$v, _components$glasses;
|
|
388
282
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
283
|
+
let {
|
|
284
|
+
prng,
|
|
285
|
+
options
|
|
286
|
+
} = _ref;
|
|
287
|
+
const eyesComponent = pickComponent(prng, 'eyes', options.eyes);
|
|
288
|
+
const eyebrowsComponent = pickComponent(prng, 'eyebrows', options.eyebrows);
|
|
289
|
+
const mouthComponent = pickComponent(prng, 'mouth', options.mouth);
|
|
290
|
+
const glassesComponent = pickComponent(prng, 'glasses', options.glasses);
|
|
291
|
+
const components = {
|
|
396
292
|
'eyes': eyesComponent,
|
|
397
293
|
'eyebrows': eyebrowsComponent,
|
|
398
294
|
'mouth': mouthComponent,
|
|
399
295
|
'glasses': prng.bool(options.glassesProbability) ? glassesComponent : undefined
|
|
400
296
|
};
|
|
401
|
-
|
|
297
|
+
const colors = {
|
|
402
298
|
'hair': pickColor(prng, 'hair', (_options$hairColor = options.hairColor) !== null && _options$hairColor !== void 0 ? _options$hairColor : []),
|
|
403
299
|
'mouth': pickColor(prng, 'mouth', (_options$mouthColor = options.mouthColor) !== null && _options$mouthColor !== void 0 ? _options$mouthColor : []),
|
|
404
300
|
'glasses': pickColor(prng, 'glasses', (_options$glassesColor = options.glassesColor) !== null && _options$glassesColor !== void 0 ? _options$glassesColor : [])
|
|
405
301
|
};
|
|
406
|
-
|
|
302
|
+
const backgroundColor = typeof options.backgroundColor === 'string' ? [options.backgroundColor] : options.backgroundColor;
|
|
407
303
|
options.backgroundColor = pickColor(prng, 'skin', backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : []).value;
|
|
408
304
|
return {
|
|
409
305
|
attributes: {
|
|
@@ -421,12 +317,14 @@ var style = {
|
|
|
421
317
|
* Code licensed under MIT License.
|
|
422
318
|
* Copyright (c) 2021 Florian Körner
|
|
423
319
|
*
|
|
424
|
-
* Design "
|
|
320
|
+
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
425
321
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
426
322
|
*/
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
323
|
+
let {
|
|
324
|
+
create,
|
|
325
|
+
meta,
|
|
326
|
+
schema
|
|
327
|
+
} = style;
|
|
430
328
|
/** @deprecated will be removed in Version 5.0 */
|
|
431
329
|
|
|
432
330
|
var index = utils.style.createLegacyWrapper(style);
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var avatars = require('@dicebear/avatars');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const schema$1 = {
|
|
8
8
|
"title": "Options",
|
|
9
9
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
10
10
|
"properties": {
|
|
@@ -119,175 +119,69 @@ var schema$1 = {
|
|
|
119
119
|
"additionalProperties": false
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
'variant13':
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
'
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
'
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
'
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
'
|
|
136
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
137
|
-
},
|
|
138
|
-
'variant08': function variant08(components, colors) {
|
|
139
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
140
|
-
},
|
|
141
|
-
'variant07': function variant07(components, colors) {
|
|
142
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n";
|
|
143
|
-
},
|
|
144
|
-
'variant06': function variant06(components, colors) {
|
|
145
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
146
|
-
},
|
|
147
|
-
'variant05': function variant05(components, colors) {
|
|
148
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
149
|
-
},
|
|
150
|
-
'variant04': function variant04(components, colors) {
|
|
151
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
152
|
-
},
|
|
153
|
-
'variant03': function variant03(components, colors) {
|
|
154
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/>\n<path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n";
|
|
155
|
-
},
|
|
156
|
-
'variant02': function variant02(components, colors) {
|
|
157
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n<path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n";
|
|
158
|
-
},
|
|
159
|
-
'variant01': function variant01(components, colors) {
|
|
160
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/>\n<path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/>\n<path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n";
|
|
161
|
-
}
|
|
122
|
+
const eyes = {
|
|
123
|
+
'variant13': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
124
|
+
'variant12': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/>\n</g>\n",
|
|
125
|
+
'variant11': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
126
|
+
'variant10': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
127
|
+
'variant09': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
128
|
+
'variant08': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
129
|
+
'variant07': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n",
|
|
130
|
+
'variant06': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
131
|
+
'variant05': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
132
|
+
'variant04': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
|
|
133
|
+
'variant03': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/>\n<path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n",
|
|
134
|
+
'variant02': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n<path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n",
|
|
135
|
+
'variant01': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/>\n<path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/>\n<path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n"
|
|
162
136
|
};
|
|
163
137
|
|
|
164
|
-
|
|
165
|
-
'variant13':
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
'
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
'
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
'
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
'
|
|
178
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
179
|
-
},
|
|
180
|
-
'variant08': function variant08(components, colors) {
|
|
181
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
182
|
-
},
|
|
183
|
-
'variant07': function variant07(components, colors) {
|
|
184
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
185
|
-
},
|
|
186
|
-
'variant06': function variant06(components, colors) {
|
|
187
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
188
|
-
},
|
|
189
|
-
'variant05': function variant05(components, colors) {
|
|
190
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
191
|
-
},
|
|
192
|
-
'variant04': function variant04(components, colors) {
|
|
193
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
194
|
-
},
|
|
195
|
-
'variant03': function variant03(components, colors) {
|
|
196
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
197
|
-
},
|
|
198
|
-
'variant02': function variant02(components, colors) {
|
|
199
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
200
|
-
},
|
|
201
|
-
'variant01': function variant01(components, colors) {
|
|
202
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
203
|
-
}
|
|
138
|
+
const eyebrows = {
|
|
139
|
+
'variant13': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
140
|
+
'variant12': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
141
|
+
'variant11': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
142
|
+
'variant10': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
143
|
+
'variant09': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
144
|
+
'variant08': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
145
|
+
'variant07': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
146
|
+
'variant06': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
147
|
+
'variant05': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
148
|
+
'variant04': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
149
|
+
'variant03': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
150
|
+
'variant02': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
|
|
151
|
+
'variant01': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n")
|
|
204
152
|
};
|
|
205
153
|
|
|
206
|
-
|
|
207
|
-
'surprised03':
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
'
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
'
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
'
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
'
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
'
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
'
|
|
226
|
-
|
|
227
|
-
},
|
|
228
|
-
'happy04': function happy04(components, colors) {
|
|
229
|
-
return "\n<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
230
|
-
},
|
|
231
|
-
'happy03': function happy03(components, colors) {
|
|
232
|
-
return "\n<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
233
|
-
},
|
|
234
|
-
'happy02': function happy02(components, colors) {
|
|
235
|
-
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>\n");
|
|
236
|
-
},
|
|
237
|
-
'happy01': function happy01(components, colors) {
|
|
238
|
-
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
239
|
-
},
|
|
240
|
-
'sad08': function sad08(components, colors) {
|
|
241
|
-
return "\n<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
242
|
-
},
|
|
243
|
-
'sad07': function sad07(components, colors) {
|
|
244
|
-
return "\n<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
245
|
-
},
|
|
246
|
-
'sad06': function sad06(components, colors) {
|
|
247
|
-
return "\n<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
248
|
-
},
|
|
249
|
-
'sad05': function sad05(components, colors) {
|
|
250
|
-
return "\n<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
251
|
-
},
|
|
252
|
-
'sad04': function sad04(components, colors) {
|
|
253
|
-
return "\n<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
254
|
-
},
|
|
255
|
-
'sad03': function sad03(components, colors) {
|
|
256
|
-
return "\n<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
257
|
-
},
|
|
258
|
-
'sad02': function sad02(components, colors) {
|
|
259
|
-
return "\n<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
260
|
-
},
|
|
261
|
-
'sad01': function sad01(components, colors) {
|
|
262
|
-
return "\n<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
263
|
-
},
|
|
264
|
-
'surprised01': function surprised01(components, colors) {
|
|
265
|
-
return "\n<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>\n";
|
|
266
|
-
}
|
|
154
|
+
const mouth$1 = {
|
|
155
|
+
'surprised03': (components, colors) => "\n<path d=\"M9 12v2h2v-2H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
156
|
+
'surprised02': (components, colors) => "\n<path d=\"M9 13v1h1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
157
|
+
'happy09': (components, colors) => "\n<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
158
|
+
'happy08': (components, colors) => "\n<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
159
|
+
'happy07': (components, colors) => "\n<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
160
|
+
'happy06': (components, colors) => "\n<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
|
|
161
|
+
'happy05': (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
162
|
+
'happy04': (components, colors) => "\n<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
163
|
+
'happy03': (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
164
|
+
'happy02': (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>\n"),
|
|
165
|
+
'happy01': (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
|
|
166
|
+
'sad08': (components, colors) => "\n<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
167
|
+
'sad07': (components, colors) => "\n<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
168
|
+
'sad06': (components, colors) => "\n<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
169
|
+
'sad05': (components, colors) => "\n<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
170
|
+
'sad04': (components, colors) => "\n<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
171
|
+
'sad03': (components, colors) => "\n<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
172
|
+
'sad02': (components, colors) => "\n<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
173
|
+
'sad01': (components, colors) => "\n<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
|
|
174
|
+
'surprised01': (components, colors) => "\n<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>\n"
|
|
267
175
|
};
|
|
268
176
|
|
|
269
|
-
|
|
270
|
-
'variant07':
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
'
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
'
|
|
277
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
278
|
-
},
|
|
279
|
-
'variant04': function variant04(components, colors) {
|
|
280
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
281
|
-
},
|
|
282
|
-
'variant03': function variant03(components, colors) {
|
|
283
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/>\n<path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
284
|
-
},
|
|
285
|
-
'variant02': function variant02(components, colors) {
|
|
286
|
-
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
287
|
-
},
|
|
288
|
-
'variant01': function variant01(components, colors) {
|
|
289
|
-
return "\n<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
290
|
-
}
|
|
177
|
+
const glasses$1 = {
|
|
178
|
+
'variant07': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 10V7h3v3h-3Zm-1-4v1H9l-.036-1H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
179
|
+
'variant06': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
180
|
+
'variant05': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
181
|
+
'variant04': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
182
|
+
'variant03': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/>\n<path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
183
|
+
'variant02': (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
|
|
184
|
+
'variant01': (components, colors) => "\n<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n")
|
|
291
185
|
};
|
|
292
186
|
|
|
293
187
|
var components = /*#__PURE__*/Object.freeze({
|
|
@@ -299,9 +193,9 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
299
193
|
});
|
|
300
194
|
|
|
301
195
|
function pickComponent(prng, group) {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
196
|
+
let values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
197
|
+
const componentCollection = components;
|
|
198
|
+
const key = prng.pick(values);
|
|
305
199
|
|
|
306
200
|
if (componentCollection[group][key]) {
|
|
307
201
|
return {
|
|
@@ -313,7 +207,7 @@ function pickComponent(prng, group) {
|
|
|
313
207
|
}
|
|
314
208
|
}
|
|
315
209
|
|
|
316
|
-
|
|
210
|
+
const skin = {
|
|
317
211
|
'variant01': 'rgba(255, 219, 172, 1)',
|
|
318
212
|
'variant02': 'rgba(245, 207, 160, 1)',
|
|
319
213
|
'variant03': 'rgba(234, 195, 147, 1)',
|
|
@@ -324,7 +218,7 @@ var skin = {
|
|
|
324
218
|
'variant08': 'rgba(141, 85, 36, 1)'
|
|
325
219
|
};
|
|
326
220
|
|
|
327
|
-
|
|
221
|
+
const hair = {
|
|
328
222
|
'variant01': 'rgba(202, 177, 136, 1)',
|
|
329
223
|
'variant02': 'rgba(167, 137, 97, 1)',
|
|
330
224
|
'variant03': 'rgba(131, 98, 59, 1)',
|
|
@@ -337,14 +231,14 @@ var hair = {
|
|
|
337
231
|
'variant10': 'rgba(40, 21, 10, 1)'
|
|
338
232
|
};
|
|
339
233
|
|
|
340
|
-
|
|
234
|
+
const mouth = {
|
|
341
235
|
'variant01': 'rgba(210, 153, 133, 1)',
|
|
342
236
|
'variant02': 'rgba(201, 130, 118, 1)',
|
|
343
237
|
'variant03': 'rgba(227, 93, 106, 1)',
|
|
344
238
|
'variant04': 'rgba(222, 15, 13, 1)'
|
|
345
239
|
};
|
|
346
240
|
|
|
347
|
-
|
|
241
|
+
const glasses = {
|
|
348
242
|
'green01': 'rgba(95, 112, 92, 1)',
|
|
349
243
|
'blue01': 'rgba(67, 103, 125, 1)',
|
|
350
244
|
'red01': 'rgba(160, 75, 93, 1)',
|
|
@@ -364,20 +258,20 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
364
258
|
function pickColor(prng, group, values) {
|
|
365
259
|
var _colorCollection$grou;
|
|
366
260
|
|
|
367
|
-
|
|
261
|
+
const colorCollection = colors;
|
|
368
262
|
|
|
369
263
|
if (values.length === 0) {
|
|
370
264
|
values.push('transparent');
|
|
371
265
|
}
|
|
372
266
|
|
|
373
|
-
|
|
267
|
+
const key = prng.pick(values);
|
|
374
268
|
return {
|
|
375
269
|
name: key,
|
|
376
270
|
value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
|
|
377
271
|
};
|
|
378
272
|
}
|
|
379
273
|
|
|
380
|
-
|
|
274
|
+
const style = {
|
|
381
275
|
meta: {
|
|
382
276
|
title: 'Pixel Art - Neutral',
|
|
383
277
|
creator: 'Plastic Jam',
|
|
@@ -387,27 +281,29 @@ var style = {
|
|
|
387
281
|
}
|
|
388
282
|
},
|
|
389
283
|
schema: schema$1,
|
|
390
|
-
create:
|
|
284
|
+
create: _ref => {
|
|
391
285
|
var _options$hairColor, _options$mouthColor, _options$glassesColor, _components$eyes$valu, _components$eyes, _components$eyebrows$, _components$eyebrows, _components$mouth$val, _components$mouth, _components$glasses$v, _components$glasses;
|
|
392
286
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
287
|
+
let {
|
|
288
|
+
prng,
|
|
289
|
+
options
|
|
290
|
+
} = _ref;
|
|
291
|
+
const eyesComponent = pickComponent(prng, 'eyes', options.eyes);
|
|
292
|
+
const eyebrowsComponent = pickComponent(prng, 'eyebrows', options.eyebrows);
|
|
293
|
+
const mouthComponent = pickComponent(prng, 'mouth', options.mouth);
|
|
294
|
+
const glassesComponent = pickComponent(prng, 'glasses', options.glasses);
|
|
295
|
+
const components = {
|
|
400
296
|
'eyes': eyesComponent,
|
|
401
297
|
'eyebrows': eyebrowsComponent,
|
|
402
298
|
'mouth': mouthComponent,
|
|
403
299
|
'glasses': prng.bool(options.glassesProbability) ? glassesComponent : undefined
|
|
404
300
|
};
|
|
405
|
-
|
|
301
|
+
const colors = {
|
|
406
302
|
'hair': pickColor(prng, 'hair', (_options$hairColor = options.hairColor) !== null && _options$hairColor !== void 0 ? _options$hairColor : []),
|
|
407
303
|
'mouth': pickColor(prng, 'mouth', (_options$mouthColor = options.mouthColor) !== null && _options$mouthColor !== void 0 ? _options$mouthColor : []),
|
|
408
304
|
'glasses': pickColor(prng, 'glasses', (_options$glassesColor = options.glassesColor) !== null && _options$glassesColor !== void 0 ? _options$glassesColor : [])
|
|
409
305
|
};
|
|
410
|
-
|
|
306
|
+
const backgroundColor = typeof options.backgroundColor === 'string' ? [options.backgroundColor] : options.backgroundColor;
|
|
411
307
|
options.backgroundColor = pickColor(prng, 'skin', backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : []).value;
|
|
412
308
|
return {
|
|
413
309
|
attributes: {
|
|
@@ -425,17 +321,19 @@ var style = {
|
|
|
425
321
|
* Code licensed under MIT License.
|
|
426
322
|
* Copyright (c) 2021 Florian Körner
|
|
427
323
|
*
|
|
428
|
-
* Design "
|
|
324
|
+
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
429
325
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
430
326
|
*/
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
327
|
+
let {
|
|
328
|
+
create,
|
|
329
|
+
meta,
|
|
330
|
+
schema
|
|
331
|
+
} = style;
|
|
434
332
|
/** @deprecated will be removed in Version 5.0 */
|
|
435
333
|
|
|
436
334
|
var index = avatars.utils.style.createLegacyWrapper(style);
|
|
437
335
|
|
|
438
336
|
exports.create = create;
|
|
439
|
-
exports[
|
|
337
|
+
exports["default"] = index;
|
|
440
338
|
exports.meta = meta;
|
|
441
339
|
exports.schema = schema;
|
package/dist/index.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(a,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@dicebear/avatars")):"function"==typeof define&&define.amd?define(["exports","@dicebear/avatars"],n):n(((a="undefined"!=typeof globalThis?globalThis:a||self).DiceBear=a.DiceBear||{},a.DiceBear.PixelArtNeutral={}),a.DiceBear)}(this,(function(a,n){"use strict";var h=Object.freeze({__proto__:null,eyes:{variant13:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 9V7h3v2H5Zm7-2h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8v1h1V8H7Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant12:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 1V8h1v1h-1Z" fill="#000"/>\n</g>\n'},variant11:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant10:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm6 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant09:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant08:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant07:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7v1h3V7H5Zm7 0h3v1h-3V7Z" fill="#fff"/>\n<path d="M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z" fill="#000"/>\n<path d="M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n'},variant06:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant05:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n</g>\n'},variant04:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant03:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 7h2v2H6V7Zm7 0h2v2h-2V7Z" fill="#000"/>\n<path d="M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z" fill="#fff" fill-opacity=".4"/>\n<path d="M7 7v1h1V7H7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".7"/>\n</g>\n'},variant02:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n<path d="M5 8h1v1H5V8Zm7 0h1v1h-1V8Z" fill="#fff" fill-opacity=".7"/>\n</g>\n'},variant01:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z" fill="#fff"/>\n<path d="M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z" fill="#000"/>\n<path d="M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n'}},eyebrows:{variant13:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="'.concat(n.hair.value,'"/>\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant12:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant11:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant10:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant09:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="'.concat(n.hair.value,'"/>\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant08:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant07:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant06:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant05:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant04:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="'.concat(n.hair.value,'"/>\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant03:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="'.concat(n.hair.value,'"/>\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant02:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant01:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="'.concat(n.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="#000" fill-opacity=".1"/>\n</g>\n')}},mouth:{surprised03:function(a,n){return'\n<path d="M9 12v2h2v-2H9Z" fill="'.concat(n.mouth.value,'"/>\n')},surprised02:function(a,n){return'\n<path d="M9 13v1h1v-1H9Z" fill="'.concat(n.mouth.value,'"/>\n')},happy09:function(a,n){return'\n<path d="M7 12v1h1v1h4v-1H8v-1H7Z" fill="'.concat(n.mouth.value,'"/>\n')},happy08:function(a,n){return'\n<path d="M10 12v1H9v1h2v-2h-1Z" fill="'.concat(n.mouth.value,'"/>\n')},happy07:function(a,n){return'\n<path d="M8 13v1h4v-1h1v-1h-1v1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},happy06:function(a,n){return'\n<path d="M9 12v2h2v-1h-1v-1H9Z" fill="'.concat(n.mouth.value,'"/>\n<path d="M11 14v-1h-1v-1H9v1h1v1h1Z" fill="#fff" fill-opacity=".2"/>\n')},happy05:function(a,n){return'\n<path d="M8 12v1h1v1h2v-1h1v-1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},happy04:function(a,n){return'\n<path d="M9 13v1h2v-1h1v-1h-1v1H9Z" fill="'.concat(n.mouth.value,'"/>\n')},happy03:function(a,n){return'\n<path d="M8 12v1h1v1h2v-1H9v-1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},happy02:function(a,n){return'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(n.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff"/>\n')},happy01:function(a,n){return'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(n.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff" fill-opacity=".2"/>\n')},sad08:function(a,n){return'\n<path d="M9 12v1H8v1h4v-1h-1v-1H9Z" fill="'.concat(n.mouth.value,'"/>\n')},sad07:function(a,n){return'\n<path d="M11 12v1H9v1H8v-1h1v-1h2Z" fill="'.concat(n.mouth.value,'"/>\n')},sad06:function(a,n){return'\n<path d="M8 12h3v1H8v-1Z" fill="'.concat(n.mouth.value,'"/>\n')},sad05:function(a,n){return'\n<path d="M8 12h4v1H8v-1Z" fill="'.concat(n.mouth.value,'"/>\n')},sad04:function(a,n){return'\n<path d="M9 12h2v1H9v-1Z" fill="'.concat(n.mouth.value,'"/>\n')},sad03:function(a,n){return'\n<path d="M8 12v1h3v1h1v-1h-1v-1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},sad02:function(a,n){return'\n<path d="M8 13v1h1v-1h3v-1H9v1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},sad01:function(a,n){return'\n<path d="M10 12v1h1v1h1v-2h-2Z" fill="'.concat(n.mouth.value,'"/>\n')},surprised01:function(a,n){return'\n<path d="M8 12v2h4v-2H8Z" fill="#fff"/>\n'}},glasses:{variant07:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 10V7h3v3h-3Zm-1-4v1H9l-.036-1H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z" fill="'.concat(n.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant06:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z" fill="'.concat(n.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant05:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path opacity=".2" d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z" fill="'.concat(n.glasses.value,'"/>\n<path d="M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant04:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z" fill="'.concat(n.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant03:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z" fill="'.concat(n.glasses.value,'"/>\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M14 7h1v1h-1V7ZM7 7h1v1H7V7Z" fill="#fff"/>\n<path d="M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant02:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z" fill="'.concat(n.glasses.value,'"/>\n<path opacity=".2" d="M7 8v1h1V8H7Zm7 0v1h1V8h-1Z" fill="#fff"/>\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant01:function(a,n){return'\n<path d="M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z" fill="'.concat(n.glasses.value,'"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z" fill="#fff" fill-opacity=".2"/>\n')}}});function t(a,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],v=h,l=a.pick(t);return v[n][l]?{name:l,value:v[n][l]}:void 0}var v=Object.freeze({__proto__:null,skin:{variant01:"rgba(255, 219, 172, 1)",variant02:"rgba(245, 207, 160, 1)",variant03:"rgba(234, 195, 147, 1)",variant04:"rgba(224, 182, 135, 1)",variant05:"rgba(203, 158, 110, 1)",variant06:"rgba(182, 134, 85, 1)",variant07:"rgba(162, 109, 61, 1)",variant08:"rgba(141, 85, 36, 1)"},hair:{variant01:"rgba(202, 177, 136, 1)",variant02:"rgba(167, 137, 97, 1)",variant03:"rgba(131, 98, 59, 1)",variant04:"rgba(96, 58, 20, 1)",variant05:"rgba(96, 48, 21, 1)",variant06:"rgba(97, 38, 22, 1)",variant07:"rgba(97, 28, 23, 1)",variant08:"rgba(78, 26, 19, 1)",variant09:"rgba(59, 23, 14, 1)",variant10:"rgba(40, 21, 10, 1)"},mouth:{variant01:"rgba(210, 153, 133, 1)",variant02:"rgba(201, 130, 118, 1)",variant03:"rgba(227, 93, 106, 1)",variant04:"rgba(222, 15, 13, 1)"},glasses:{green01:"rgba(95, 112, 92, 1)",blue01:"rgba(67, 103, 125, 1)",red01:"rgba(160, 75, 93, 1)",black01:"rgba(75, 75, 75, 1)",black02:"rgba(50, 50, 50, 1)",black03:"rgba(25, 25, 25, 1)"}});function l(a,n,h){var t,l=v;0===h.length&&h.push("transparent");var i=a.pick(h);return{name:i,value:null!==(t=l[n][i])&&void 0!==t?t:i}}var i={meta:{title:"Pixel Art - Neutral",creator:"Plastic Jam",license:{name:"MIT",url:"https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE"}},schema:{title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{eyes:{title:"Eyes",type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyebrows:{title:"Eyebrows",type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},mouth:{title:"Mouth",type:"array",items:{type:"string",enum:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},default:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},glasses:{title:"Glasses",type:"array",items:{type:"string",enum:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{title:"Glasses Probability",default:20,type:"integer",minimum:0,maximum:100},backgroundColor:{title:"Background Color",anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",pattern:"^[0-9a-zA-Z]+$"},{type:"array",items:{anyOf:[{type:"string",pattern:"^[0-9a-zA-Z]+$"},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]}}],default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08"]},hairColor:{title:"Hair Color",type:"array",items:{anyOf:[{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},mouthColor:{title:"Mouth Color",type:"array",items:{anyOf:[{type:"string",enum:["variant01","variant02","variant03","variant04"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["variant01","variant02","variant03","variant04"]},glassesColor:{title:"Glasses Color",type:"array",items:{anyOf:[{type:"string",enum:["green01","blue01","red01","black01","black02","black03"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["green01","blue01","red01","black01","black02","black03"]}},additionalProperties:!1},create:function(a){var n,h,v,i,r,e,f,o,d,u,p,V=a.prng,c=a.options,Z=t(V,"eyes",c.eyes),s=t(V,"eyebrows",c.eyebrows),H=t(V,"mouth",c.mouth),m=t(V,"glasses",c.glasses),g={eyes:Z,eyebrows:s,mouth:H,glasses:V.bool(c.glassesProbability)?m:void 0},y={hair:l(V,"hair",null!==(n=c.hairColor)&&void 0!==n?n:[]),mouth:l(V,"mouth",null!==(h=c.mouthColor)&&void 0!==h?h:[]),glasses:l(V,"glasses",null!==(v=c.glassesColor)&&void 0!==v?v:[])},M="string"==typeof c.backgroundColor?[c.backgroundColor]:c.backgroundColor;return c.backgroundColor=l(V,"skin",null!=M?M:[]).value,{attributes:{viewBox:"0 0 14 14",fill:"none"},body:'\n<g transform="translate(-3 -3)">\n'.concat(null!==(i=null===(r=g.eyes)||void 0===r?void 0:r.value(g,y))&&void 0!==i?i:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(e=null===(f=g.eyebrows)||void 0===f?void 0:f.value(g,y))&&void 0!==e?e:"",'\n</g>\n<g transform="translate(-3 -2)">\n').concat(null!==(o=null===(d=g.mouth)||void 0===d?void 0:d.value(g,y))&&void 0!==o?o:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(u=null===(p=g.glasses)||void 0===p?void 0:p.value(g,y))&&void 0!==u?u:"","\n</g>\n")}}},r=i.create,e=i.meta,f=i.schema,o=n.utils.style.createLegacyWrapper(i);
|
|
1
|
+
!function(a,h){"object"==typeof exports&&"undefined"!=typeof module?h(exports,require("@dicebear/avatars")):"function"==typeof define&&define.amd?define(["exports","@dicebear/avatars"],h):h(((a="undefined"!=typeof globalThis?globalThis:a||self).DiceBear=a.DiceBear||{},a.DiceBear.PixelArtNeutral={}),a.DiceBear)}(this,(function(a,h){"use strict";var v=Object.freeze({__proto__:null,eyes:{variant13:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 9V7h3v2H5Zm7-2h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8v1h1V8H7Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant12:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 1V8h1v1h-1Z" fill="#000"/>\n</g>\n',variant11:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant10:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm6 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant09:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant08:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant07:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7v1h3V7H5Zm7 0h3v1h-3V7Z" fill="#fff"/>\n<path d="M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z" fill="#000"/>\n<path d="M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n',variant06:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant05:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n</g>\n',variant04:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant03:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 7h2v2H6V7Zm7 0h2v2h-2V7Z" fill="#000"/>\n<path d="M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z" fill="#fff" fill-opacity=".4"/>\n<path d="M7 7v1h1V7H7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".7"/>\n</g>\n',variant02:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n<path d="M5 8h1v1H5V8Zm7 0h1v1h-1V8Z" fill="#fff" fill-opacity=".7"/>\n</g>\n',variant01:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z" fill="#fff"/>\n<path d="M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z" fill="#000"/>\n<path d="M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n'},eyebrows:{variant13:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="'.concat(h.hair.value,'"/>\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant12:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant11:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant10:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant09:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="'.concat(h.hair.value,'"/>\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant08:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant07:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant06:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant05:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant04:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="'.concat(h.hair.value,'"/>\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant03:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="'.concat(h.hair.value,'"/>\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant02:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant01:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="'.concat(h.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},mouth:{surprised03:(a,h)=>'\n<path d="M9 12v2h2v-2H9Z" fill="'.concat(h.mouth.value,'"/>\n'),surprised02:(a,h)=>'\n<path d="M9 13v1h1v-1H9Z" fill="'.concat(h.mouth.value,'"/>\n'),happy09:(a,h)=>'\n<path d="M7 12v1h1v1h4v-1H8v-1H7Z" fill="'.concat(h.mouth.value,'"/>\n'),happy08:(a,h)=>'\n<path d="M10 12v1H9v1h2v-2h-1Z" fill="'.concat(h.mouth.value,'"/>\n'),happy07:(a,h)=>'\n<path d="M8 13v1h4v-1h1v-1h-1v1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),happy06:(a,h)=>'\n<path d="M9 12v2h2v-1h-1v-1H9Z" fill="'.concat(h.mouth.value,'"/>\n<path d="M11 14v-1h-1v-1H9v1h1v1h1Z" fill="#fff" fill-opacity=".2"/>\n'),happy05:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1h1v-1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),happy04:(a,h)=>'\n<path d="M9 13v1h2v-1h1v-1h-1v1H9Z" fill="'.concat(h.mouth.value,'"/>\n'),happy03:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1H9v-1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),happy02:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff"/>\n'),happy01:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff" fill-opacity=".2"/>\n'),sad08:(a,h)=>'\n<path d="M9 12v1H8v1h4v-1h-1v-1H9Z" fill="'.concat(h.mouth.value,'"/>\n'),sad07:(a,h)=>'\n<path d="M11 12v1H9v1H8v-1h1v-1h2Z" fill="'.concat(h.mouth.value,'"/>\n'),sad06:(a,h)=>'\n<path d="M8 12h3v1H8v-1Z" fill="'.concat(h.mouth.value,'"/>\n'),sad05:(a,h)=>'\n<path d="M8 12h4v1H8v-1Z" fill="'.concat(h.mouth.value,'"/>\n'),sad04:(a,h)=>'\n<path d="M9 12h2v1H9v-1Z" fill="'.concat(h.mouth.value,'"/>\n'),sad03:(a,h)=>'\n<path d="M8 12v1h3v1h1v-1h-1v-1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),sad02:(a,h)=>'\n<path d="M8 13v1h1v-1h3v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),sad01:(a,h)=>'\n<path d="M10 12v1h1v1h1v-2h-2Z" fill="'.concat(h.mouth.value,'"/>\n'),surprised01:(a,h)=>'\n<path d="M8 12v2h4v-2H8Z" fill="#fff"/>\n'},glasses:{variant07:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 10V7h3v3h-3Zm-1-4v1H9l-.036-1H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant06:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant05:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path opacity=".2" d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant04:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant03:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z" fill="'.concat(h.glasses.value,'"/>\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M14 7h1v1h-1V7ZM7 7h1v1H7V7Z" fill="#fff"/>\n<path d="M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant02:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z" fill="'.concat(h.glasses.value,'"/>\n<path opacity=".2" d="M7 8v1h1V8H7Zm7 0v1h1V8h-1Z" fill="#fff"/>\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant01:(a,h)=>'\n<path d="M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z" fill="'.concat(h.glasses.value,'"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z" fill="#fff" fill-opacity=".2"/>\n')}});function l(a,h){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=v,t=a.pick(l);return n[h][t]?{name:t,value:n[h][t]}:void 0}var n=Object.freeze({__proto__:null,skin:{variant01:"rgba(255, 219, 172, 1)",variant02:"rgba(245, 207, 160, 1)",variant03:"rgba(234, 195, 147, 1)",variant04:"rgba(224, 182, 135, 1)",variant05:"rgba(203, 158, 110, 1)",variant06:"rgba(182, 134, 85, 1)",variant07:"rgba(162, 109, 61, 1)",variant08:"rgba(141, 85, 36, 1)"},hair:{variant01:"rgba(202, 177, 136, 1)",variant02:"rgba(167, 137, 97, 1)",variant03:"rgba(131, 98, 59, 1)",variant04:"rgba(96, 58, 20, 1)",variant05:"rgba(96, 48, 21, 1)",variant06:"rgba(97, 38, 22, 1)",variant07:"rgba(97, 28, 23, 1)",variant08:"rgba(78, 26, 19, 1)",variant09:"rgba(59, 23, 14, 1)",variant10:"rgba(40, 21, 10, 1)"},mouth:{variant01:"rgba(210, 153, 133, 1)",variant02:"rgba(201, 130, 118, 1)",variant03:"rgba(227, 93, 106, 1)",variant04:"rgba(222, 15, 13, 1)"},glasses:{green01:"rgba(95, 112, 92, 1)",blue01:"rgba(67, 103, 125, 1)",red01:"rgba(160, 75, 93, 1)",black01:"rgba(75, 75, 75, 1)",black02:"rgba(50, 50, 50, 1)",black03:"rgba(25, 25, 25, 1)"}});function t(a,h,v){var l;const t=n;0===v.length&&v.push("transparent");const i=a.pick(v);return{name:i,value:null!==(l=t[h][i])&&void 0!==l?l:i}}const i={meta:{title:"Pixel Art - Neutral",creator:"Plastic Jam",license:{name:"MIT",url:"https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE"}},schema:{title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{eyes:{title:"Eyes",type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyebrows:{title:"Eyebrows",type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},mouth:{title:"Mouth",type:"array",items:{type:"string",enum:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},default:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},glasses:{title:"Glasses",type:"array",items:{type:"string",enum:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{title:"Glasses Probability",default:20,type:"integer",minimum:0,maximum:100},backgroundColor:{title:"Background Color",anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",pattern:"^[0-9a-zA-Z]+$"},{type:"array",items:{anyOf:[{type:"string",pattern:"^[0-9a-zA-Z]+$"},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]}}],default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08"]},hairColor:{title:"Hair Color",type:"array",items:{anyOf:[{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},mouthColor:{title:"Mouth Color",type:"array",items:{anyOf:[{type:"string",enum:["variant01","variant02","variant03","variant04"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["variant01","variant02","variant03","variant04"]},glassesColor:{title:"Glasses Color",type:"array",items:{anyOf:[{type:"string",enum:["green01","blue01","red01","black01","black02","black03"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["green01","blue01","red01","black01","black02","black03"]}},additionalProperties:!1},create:a=>{var h,v,n,i,e,r,f,d,p,o,V;let{prng:u,options:c}=a;const Z=l(u,"eyes",c.eyes),s=l(u,"eyebrows",c.eyebrows),H=l(u,"mouth",c.mouth),m=l(u,"glasses",c.glasses),g={eyes:Z,eyebrows:s,mouth:H,glasses:u.bool(c.glassesProbability)?m:void 0},y={hair:t(u,"hair",null!==(h=c.hairColor)&&void 0!==h?h:[]),mouth:t(u,"mouth",null!==(v=c.mouthColor)&&void 0!==v?v:[]),glasses:t(u,"glasses",null!==(n=c.glassesColor)&&void 0!==n?n:[])},M="string"==typeof c.backgroundColor?[c.backgroundColor]:c.backgroundColor;return c.backgroundColor=t(u,"skin",null!=M?M:[]).value,{attributes:{viewBox:"0 0 14 14",fill:"none"},body:'\n<g transform="translate(-3 -3)">\n'.concat(null!==(i=null===(e=g.eyes)||void 0===e?void 0:e.value(g,y))&&void 0!==i?i:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(r=null===(f=g.eyebrows)||void 0===f?void 0:f.value(g,y))&&void 0!==r?r:"",'\n</g>\n<g transform="translate(-3 -2)">\n').concat(null!==(d=null===(p=g.mouth)||void 0===p?void 0:p.value(g,y))&&void 0!==d?d:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(o=null===(V=g.glasses)||void 0===V?void 0:V.value(g,y))&&void 0!==o?o:"","\n</g>\n")}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Pixel Art - Neutral (@dicebear/pixel-art-neutral)
|
|
4
4
|
*
|
|
5
5
|
* Code licensed under MIT License.
|
|
6
6
|
* Copyright (c) 2021 Florian Körner
|
|
7
7
|
*
|
|
8
|
-
* Design "
|
|
8
|
+
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
9
9
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
10
|
-
*/a.create=
|
|
10
|
+
*/let{create:e,meta:r,schema:f}=i;var d=h.utils.style.createLegacyWrapper(i);a.create=e,a.default=d,a.meta=r,a.schema=f,Object.defineProperty(a,"__esModule",{value:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/pixel-art-neutral",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.2",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"build": "dicebear-project build DiceBear.PixelArtNeutral"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@dicebear/avatars": "^4.
|
|
32
|
+
"@dicebear/avatars": "^4.10.2",
|
|
33
33
|
"@tsconfig/recommended": "^1.0.0",
|
|
34
34
|
"@types/jest": "^26.0.22",
|
|
35
35
|
"@types/node": "^10.11.6",
|
|
36
|
-
"dicebear-project": "^4.
|
|
36
|
+
"dicebear-project": "^4.10.2",
|
|
37
37
|
"jest": "^26.6.3",
|
|
38
38
|
"ts-jest": "^26.5.4",
|
|
39
39
|
"typescript": "^4.2.3",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@dicebear/avatars": "^4.6.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "28ffc2046de961f814b3c5804c562dd318821a7b"
|
|
46
46
|
}
|