Dylan
This avatar style is a remix of: Dylan! The Avatar Generator by Natalia Spivak, licensed under CC BY 4.0 .
LICENSE
While our code is MIT licensed, the design of this avatar style is licensed under CC BY 4.0. See details for more information.
Usage
Use this URL to request this avatar style via our HTTP API.
https://api.dicebear.com/9.x/dylan/svg
You can use the URL directly as image source.
See HTTP-API docs for more information.
First install the required packages via npm:
npm install @dicebear/core @dicebear/collection --save
Then you can create this avatar as follows:
import { createAvatar } from '@dicebear/core';
import { dylan } from '@dicebear/collection';
const avatar = createAvatar(dylan, {
// ... options
});
const svg = avatar.toString();
See JS-Library docs for more information.
First install the CLI package via npm:
npm install --global dicebear
Then you can create this avatar as follows:
dicebear dylan
See CLI docs for more information.
Options
seed
TypestringThe seed determines the initial value for the built-in PRNG. With the PRNG you can create the same avatar over and over again based.
FelixAnekahttps://api.dicebear.com/9.x/dylan/svg?seed=Felix
createAvatar(dylan, {
seed: "Felix"
});dicebear dylan --seed "Felix"
flip
Typebooleanfalsetruefalsehttps://api.dicebear.com/9.x/dylan/svg?flip=false
createAvatar(dylan, {
flip: false
});dicebear dylan --flip false
rotate
TypeintegerMinimum 0Maximum 3600901802700https://api.dicebear.com/9.x/dylan/svg?rotate=0
createAvatar(dylan, {
rotate: 0
});dicebear dylan --rotate 0
scale
TypeintegerMinimum 0Maximum 20050100200100https://api.dicebear.com/9.x/dylan/svg?scale=50
createAvatar(dylan, {
scale: 50
});dicebear dylan --scale 50
radius
TypeintegerMinimum 0Maximum 50010203040500https://api.dicebear.com/9.x/dylan/svg?radius=0
createAvatar(dylan, {
radius: 0
});dicebear dylan --radius 0
size
TypeintegerMinimum 13248648096https://api.dicebear.com/9.x/dylan/svg?size=32
createAvatar(dylan, {
size: 32
});dicebear dylan --size 32
backgroundColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$b6e3f4c0aeded1d4f9ffd5dcffdfbf29e051619effffa6e6https://api.dicebear.com/9.x/dylan/svg?backgroundColor=b6e3f4,c0aede,d1d4f9
createAvatar(dylan, {
backgroundColor: ["b6e3f4","c0aede","d1d4f9"]
});dicebear dylan --backgroundColor "b6e3f4" "c0aede" "d1d4f9"
backgroundType
TypearraygradientLinearsolidsolidhttps://api.dicebear.com/9.x/dylan/svg?backgroundType=gradientLinear,solid
createAvatar(dylan, {
backgroundType: ["gradientLinear","solid"]
});dicebear dylan --backgroundType "gradientLinear" "solid"
backgroundRotation
Typearray 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'].
0360https://api.dicebear.com/9.x/dylan/svg?backgroundRotation=0,360
createAvatar(dylan, {
backgroundRotation: [0,360]
});dicebear dylan --backgroundRotation 0 360
translateX
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/dylan/svg?translateX=-50
createAvatar(dylan, {
translateX: -50
});dicebear dylan --translateX -50
translateY
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/dylan/svg?translateY=-50
createAvatar(dylan, {
translateY: -50
});dicebear dylan --translateY -50
clip
Typebooleantruehttps://api.dicebear.com/9.x/dylan/svg?clip=true
createAvatar(dylan, {
clip: true
});dicebear dylan --clip true
randomizeIds
TypebooleanThis 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.
falsehttps://api.dicebear.com/9.x/dylan/svg?randomizeIds=false
createAvatar(dylan, {
randomizeIds: false
});dicebear dylan --randomizeIds false
facialHair
Typearraydefaultdefaulthttps://api.dicebear.com/9.x/dylan/svg?facialHair=default
createAvatar(dylan, {
facialHair: ["default"]
});dicebear dylan --facialHair "default"
facialHairProbability
TypeintegerMinimum 0Maximum 100010020https://api.dicebear.com/9.x/dylan/svg?facialHairProbability=0
createAvatar(dylan, {
facialHairProbability: 0
});dicebear dylan --facialHairProbability 0
hair
TypearraybangsbunsflatTopfluffylongCurlspartingplainroundBobshaggyshortCurlsspikywavybangsbunsflatTopfluffylongCurlspartingplainroundBobshaggyshortCurlsspikywavyhttps://api.dicebear.com/9.x/dylan/svg?hair=bangs,buns,flatTop
createAvatar(dylan, {
hair: ["bangs","buns","flatTop"]
});dicebear dylan --hair "bangs" "buns" "flatTop"
hairColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$0000001d5dffff543dfff500ffffffhttps://api.dicebear.com/9.x/dylan/svg?hairColor=000000,1d5dff,ff543d
createAvatar(dylan, {
hairColor: ["000000","1d5dff","ff543d"]
});dicebear dylan --hairColor "000000" "1d5dff" "ff543d"
mood
TypearrayangryconfusedhappyhopefulneutralsadsuperHappyangryconfusedhappyhopefulneutralsadsuperHappyhttps://api.dicebear.com/9.x/dylan/svg?mood=angry,confused,happy
createAvatar(dylan, {
mood: ["angry","confused","happy"]
});dicebear dylan --mood "angry" "confused" "happy"
skinColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$c26450ffd6c0https://api.dicebear.com/9.x/dylan/svg?skinColor=c26450,ffd6c0
createAvatar(dylan, {
skinColor: ["c26450","ffd6c0"]
});dicebear dylan --skinColor "c26450" "ffd6c0"
Details
| Naming | |
|---|---|
| Collection Import | import { dylan } from '@dicebear/collection'; |
| Package Import | import * as style from '@dicebear/dylan'; |
| CLI | dicebear dylan |
| HTTP-API | https://api.dicebear.com/9.x/dylan/svg |
| JSON Schema | https://api.dicebear.com/9.x/dylan/schema.json |
| Source | |
|---|---|
| Title | Dylan! The Avatar Generator |
| Creator | Natalia Spivak |
| Website | https://nataspvk.tilda.ws/ |
| License | CC BY 4.0 |
| Source | https://www.figma.com/community/file/1356575240759683500 |