Pixel Art
Pixel Art by DiceBear, licensed under CC0 1.0 .
LICENSE
While our code is MIT licensed, the design of this avatar style is licensed under CC0 1.0. See details for more information.
Usage
Options
seed
Type
stringThe seed determines the initial value for the built-in PRNG. With the PRNG you can create the same avatar over and over again based.
flip
Type
booleanrotate
Type
integerMinimum
0Maximum
360scale
Type
integerMinimum
0Maximum
200radius
Type
integerMinimum
0Maximum
50size
Type
integerMinimum
1backgroundColor
Type
arrayItem Pattern
^(transparent|[a-fA-F0-9]{6})$backgroundType
Type
arraybackgroundRotation
Type
array Specify an array of two numbers for this option. The PRNG will generate a number between the two values, which will be used as the rotation degree. The rotation is only visible if backgroundType is set to ['gradientLinear'].
translateX
Type
integerMinimum
-100Maximum
100translateY
Type
integerMinimum
-100Maximum
100clip
Type
booleanrandomizeIds
Type
booleanThis option randomize the IDs in the generated SVG / XML. This can be useful for example if the avatars are included directly in the HTML and you want to avoid ID collisions.
accessories
Type
arrayaccessoriesColor
Type
arrayItem Pattern
^(transparent|[a-fA-F0-9]{6})$accessoriesProbability
Type
integerMinimum
0Maximum
100beard
Type
arraybeardProbability
Type
integerMinimum
0Maximum
100clothing
Type
arrayclothingColor
Type
arrayItem Pattern
^(transparent|[a-fA-F0-9]{6})$eyes
Type
arrayeyesColor
Type
arrayItem Pattern
^(transparent|[a-fA-F0-9]{6})$glasses
Type
arrayglassesColor
Type
arrayItem Pattern
^(transparent|[a-fA-F0-9]{6})$glassesProbability
Type
integerMinimum
0Maximum
100hair
Type
arrayhairColor
Type
arrayItem Pattern
^(transparent|[a-fA-F0-9]{6})$hat
Type
arrayhatColor
Type
arrayItem Pattern
^(transparent|[a-fA-F0-9]{6})$hatProbability
Type
integerMinimum
0Maximum
100mouth
Type
arraymouthColor
Type
arrayItem Pattern
^(transparent|[a-fA-F0-9]{6})$skinColor
Type
arrayItem Pattern
^(transparent|[a-fA-F0-9]{6})$Details
| Naming | |
|---|---|
| Collection Import | |
| Package Import | |
| CLI | |
| HTTP-API | https://api.dicebear.com/9.x/pixel-art/svg |
| JSON Schema | https://api.dicebear.com/9.x/pixel-art/schema.json |
| Source | |
|---|---|
| Title | Pixel Art |
| Creator | DiceBear |
| Website | https://www.dicebear.com |
| License | CC0 1.0 |
| Source | https://www.figma.com/community/file/1198754108850888330 |