Shapes
Shapes 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
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
booleanrotate
integer0360scale
integer0200radius
integer050size
integer1backgroundColor
array^(transparent|[a-fA-F0-9]{6})$backgroundType
arraybackgroundRotation
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
integer-100100translateY
integer-100100clip
booleanrandomizeIds
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.
shape1
arrayshape1Color
array^(transparent|[a-fA-F0-9]{6})$shape1OffsetX
array2Specify an array of two numbers for this option. The PRNG will generate a number between the two values, which will be used as offset.
shape1OffsetY
array2Specify an array of two numbers for this option. The PRNG will generate a number between the two values, which will be used as offset.
shape1Rotation
array2Specify 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.
shape2
arrayshape2Color
array^(transparent|[a-fA-F0-9]{6})$shape2OffsetX
array2Specify an array of two numbers for this option. The PRNG will generate a number between the two values, which will be used as offset.
shape2OffsetY
array2Specify an array of two numbers for this option. The PRNG will generate a number between the two values, which will be used as offset.
shape2Rotation
array2Specify 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.
shape3
arrayshape3Color
array^(transparent|[a-fA-F0-9]{6})$shape3OffsetX
array2Specify an array of two numbers for this option. The PRNG will generate a number between the two values, which will be used as offset.
shape3OffsetY
array2Specify an array of two numbers for this option. The PRNG will generate a number between the two values, which will be used as offset.
shape3Rotation
array2Specify 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.
Details
| Naming | |
|---|---|
| Collection Import | |
| Package Import | |
| CLI | |
| HTTP-API | https://api.dicebear.com/9.x/shapes/svg |
| JSON Schema | https://api.dicebear.com/9.x/shapes/schema.json |
| Source | |
|---|---|
| Title | Shapes |
| Creator | DiceBear |
| Website | https://www.dicebear.com |
| License | CC0 1.0 |
| Source | https://www.dicebear.com |