Toon Head
Toon Head is an illustrated vector avatar style featuring detailed character portraits with diverse skin tones, hairstyles, and expressive faces. Generate lifelike, customizable SVG profile icons in a modern animated-series aesthetic.
This avatar style is a remix of: ToonHead by Johan Melin, 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/toon-head/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 { toonHead } from '@dicebear/collection';
const avatar = createAvatar(toonHead, {
// ... 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 toonHead
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/toon-head/svg?seed=Felix
createAvatar(toonHead, {
seed: "Felix"
});dicebear toonHead --seed "Felix"
flip
Typebooleanfalsetruefalsehttps://api.dicebear.com/9.x/toon-head/svg?flip=false
createAvatar(toonHead, {
flip: false
});dicebear toonHead --flip false
rotate
TypeintegerMinimum 0Maximum 3600901802700https://api.dicebear.com/9.x/toon-head/svg?rotate=0
createAvatar(toonHead, {
rotate: 0
});dicebear toonHead --rotate 0
scale
TypeintegerMinimum 0Maximum 20050100200100https://api.dicebear.com/9.x/toon-head/svg?scale=50
createAvatar(toonHead, {
scale: 50
});dicebear toonHead --scale 50
radius
TypeintegerMinimum 0Maximum 50010203040500https://api.dicebear.com/9.x/toon-head/svg?radius=0
createAvatar(toonHead, {
radius: 0
});dicebear toonHead --radius 0
size
TypeintegerMinimum 13248648096https://api.dicebear.com/9.x/toon-head/svg?size=32
createAvatar(toonHead, {
size: 32
});dicebear toonHead --size 32
backgroundColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$b6e3f4c0aeded1d4f9ffd5dcffdfbfhttps://api.dicebear.com/9.x/toon-head/svg?backgroundColor=b6e3f4,c0aede,d1d4f9
createAvatar(toonHead, {
backgroundColor: ["b6e3f4","c0aede","d1d4f9"]
});dicebear toonHead --backgroundColor "b6e3f4" "c0aede" "d1d4f9"
backgroundType
TypearraygradientLinearsolidsolidhttps://api.dicebear.com/9.x/toon-head/svg?backgroundType=gradientLinear,solid
createAvatar(toonHead, {
backgroundType: ["gradientLinear","solid"]
});dicebear toonHead --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/toon-head/svg?backgroundRotation=0,360
createAvatar(toonHead, {
backgroundRotation: [0,360]
});dicebear toonHead --backgroundRotation 0 360
translateX
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/toon-head/svg?translateX=-50
createAvatar(toonHead, {
translateX: -50
});dicebear toonHead --translateX -50
translateY
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/toon-head/svg?translateY=-50
createAvatar(toonHead, {
translateY: -50
});dicebear toonHead --translateY -50
clip
Typebooleantruehttps://api.dicebear.com/9.x/toon-head/svg?clip=true
createAvatar(toonHead, {
clip: true
});dicebear toonHead --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/toon-head/svg?randomizeIds=false
createAvatar(toonHead, {
randomizeIds: false
});dicebear toonHead --randomizeIds false
beard
TypearraychinchinMoustachefullBeardlongBeardmoustacheTwirlchinchinMoustachefullBeardlongBeardmoustacheTwirlhttps://api.dicebear.com/9.x/toon-head/svg?beard=chin,chinMoustache,fullBeard
createAvatar(toonHead, {
beard: ["chin","chinMoustache","fullBeard"]
});dicebear toonHead --beard "chin" "chinMoustache" "fullBeard"
beardProbability
TypeintegerMinimum 0Maximum 100010050https://api.dicebear.com/9.x/toon-head/svg?beardProbability=0
createAvatar(toonHead, {
beardProbability: 0
});dicebear toonHead --beardProbability 0
body
Typearraybodybodyhttps://api.dicebear.com/9.x/toon-head/svg?body=body
createAvatar(toonHead, {
body: ["body"]
});dicebear toonHead --body "body"
clothes
TypearraydressopenJacketshirttShirtturtleNeckdressopenJacketshirttShirtturtleNeckhttps://api.dicebear.com/9.x/toon-head/svg?clothes=dress,openJacket,shirt
createAvatar(toonHead, {
clothes: ["dress","openJacket","shirt"]
});dicebear toonHead --clothes "dress" "openJacket" "shirt"
clothesColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$0b3286147f3c731ac3151613545454b11f1fe8e9e6eab308ec4899f97316https://api.dicebear.com/9.x/toon-head/svg?clothesColor=0b3286,147f3c,731ac3
createAvatar(toonHead, {
clothesColor: ["0b3286","147f3c","731ac3"]
});dicebear toonHead --clothesColor "0b3286" "147f3c" "731ac3"
eyebrows
Typearrayangryhappyneutralraisedsadangryhappyneutralraisedsadhttps://api.dicebear.com/9.x/toon-head/svg?eyebrows=angry,happy,neutral
createAvatar(toonHead, {
eyebrows: ["angry","happy","neutral"]
});dicebear toonHead --eyebrows "angry" "happy" "neutral"
eyes
Typearraybowhappyhumblewidewinkbowhappyhumblewidewinkhttps://api.dicebear.com/9.x/toon-head/svg?eyes=bow,happy,humble
createAvatar(toonHead, {
eyes: ["bow","happy","humble"]
});dicebear toonHead --eyes "bow" "happy" "humble"
hair
TypearraybunsideComedspikyundercutbunsideComedspikyundercuthttps://api.dicebear.com/9.x/toon-head/svg?hair=bun,sideComed,spiky
createAvatar(toonHead, {
hair: ["bun","sideComed","spiky"]
});dicebear toonHead --hair "bun" "sideComed" "spiky"
hairColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$2c1b18724133a55728b58143d6b370https://api.dicebear.com/9.x/toon-head/svg?hairColor=2c1b18,724133,a55728
createAvatar(toonHead, {
hairColor: ["2c1b18","724133","a55728"]
});dicebear toonHead --hairColor "2c1b18" "724133" "a55728"
hairProbability
TypeintegerMinimum 0Maximum 1000100100https://api.dicebear.com/9.x/toon-head/svg?hairProbability=0
createAvatar(toonHead, {
hairProbability: 0
});dicebear toonHead --hairProbability 0
head
Typearrayheadheadhttps://api.dicebear.com/9.x/toon-head/svg?head=head
createAvatar(toonHead, {
head: ["head"]
});dicebear toonHead --head "head"
mouth
Typearrayagapeangrylaughsadsmileagapeangrylaughsadsmilehttps://api.dicebear.com/9.x/toon-head/svg?mouth=agape,angry,laugh
createAvatar(toonHead, {
mouth: ["agape","angry","laugh"]
});dicebear toonHead --mouth "agape" "angry" "laugh"
rearHair
TypearraylongStraightlongWavyneckHighshoulderHighlongStraightlongWavyneckHighshoulderHighhttps://api.dicebear.com/9.x/toon-head/svg?rearHair=longStraight,longWavy,neckHigh
createAvatar(toonHead, {
rearHair: ["longStraight","longWavy","neckHigh"]
});dicebear toonHead --rearHair "longStraight" "longWavy" "neckHigh"
rearHairProbability
TypeintegerMinimum 0Maximum 100010050https://api.dicebear.com/9.x/toon-head/svg?rearHairProbability=0
createAvatar(toonHead, {
rearHairProbability: 0
});dicebear toonHead --rearHairProbability 0
skinColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$5c3829a36b4fb98e6ac68e7af1c3a5https://api.dicebear.com/9.x/toon-head/svg?skinColor=5c3829,a36b4f,b98e6a
createAvatar(toonHead, {
skinColor: ["5c3829","a36b4f","b98e6a"]
});dicebear toonHead --skinColor "5c3829" "a36b4f" "b98e6a"
Details
| Naming | |
|---|---|
| Collection Import | import { toonHead } from '@dicebear/collection'; |
| Package Import | import * as style from '@dicebear/toon-head'; |
| CLI | dicebear toonHead |
| HTTP-API | https://api.dicebear.com/9.x/toon-head/svg |
| JSON Schema | https://api.dicebear.com/9.x/toon-head/schema.json |
| Source | |
|---|---|
| Title | ToonHead |
| Creator | Johan Melin |
| Website | https://www.johanmelin.com |
| License | CC BY 4.0 |
| Source | https://www.figma.com/community/file/1589627891082866389 |