Open Peeps
This avatar style is a remix of: Open Peeps by Pablo Stanley, 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
Use this URL to request this avatar style via our HTTP API.
https://api.dicebear.com/9.x/open-peeps/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 { openPeeps } from '@dicebear/collection';
const avatar = createAvatar(openPeeps, {
// ... 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 openPeeps
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/open-peeps/svg?seed=Felix
createAvatar(openPeeps, {
seed: "Felix"
});dicebear openPeeps --seed "Felix"
flip
Typebooleanfalsetruefalsehttps://api.dicebear.com/9.x/open-peeps/svg?flip=false
createAvatar(openPeeps, {
flip: false
});dicebear openPeeps --flip false
rotate
TypeintegerMinimum 0Maximum 3600901802700https://api.dicebear.com/9.x/open-peeps/svg?rotate=0
createAvatar(openPeeps, {
rotate: 0
});dicebear openPeeps --rotate 0
scale
TypeintegerMinimum 0Maximum 20050100200100https://api.dicebear.com/9.x/open-peeps/svg?scale=50
createAvatar(openPeeps, {
scale: 50
});dicebear openPeeps --scale 50
radius
TypeintegerMinimum 0Maximum 50010203040500https://api.dicebear.com/9.x/open-peeps/svg?radius=0
createAvatar(openPeeps, {
radius: 0
});dicebear openPeeps --radius 0
size
TypeintegerMinimum 13248648096https://api.dicebear.com/9.x/open-peeps/svg?size=32
createAvatar(openPeeps, {
size: 32
});dicebear openPeeps --size 32
backgroundColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$b6e3f4c0aeded1d4f9ffd5dcffdfbfhttps://api.dicebear.com/9.x/open-peeps/svg?backgroundColor=b6e3f4,c0aede,d1d4f9
createAvatar(openPeeps, {
backgroundColor: ["b6e3f4","c0aede","d1d4f9"]
});dicebear openPeeps --backgroundColor "b6e3f4" "c0aede" "d1d4f9"
backgroundType
TypearraygradientLinearsolidsolidhttps://api.dicebear.com/9.x/open-peeps/svg?backgroundType=gradientLinear,solid
createAvatar(openPeeps, {
backgroundType: ["gradientLinear","solid"]
});dicebear openPeeps --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/open-peeps/svg?backgroundRotation=0,360
createAvatar(openPeeps, {
backgroundRotation: [0,360]
});dicebear openPeeps --backgroundRotation 0 360
translateX
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/open-peeps/svg?translateX=-50
createAvatar(openPeeps, {
translateX: -50
});dicebear openPeeps --translateX -50
translateY
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/open-peeps/svg?translateY=-50
createAvatar(openPeeps, {
translateY: -50
});dicebear openPeeps --translateY -50
clip
Typebooleantruehttps://api.dicebear.com/9.x/open-peeps/svg?clip=true
createAvatar(openPeeps, {
clip: true
});dicebear openPeeps --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/open-peeps/svg?randomizeIds=false
createAvatar(openPeeps, {
randomizeIds: false
});dicebear openPeeps --randomizeIds false
accessories
Typearrayeyepatchglassesglasses2glasses3glasses4glasses5sunglassessunglasses2eyepatchglassesglasses2glasses3glasses4glasses5sunglassessunglasses2https://api.dicebear.com/9.x/open-peeps/svg?accessories=eyepatch,glasses,glasses2
createAvatar(openPeeps, {
accessories: ["eyepatch","glasses","glasses2"]
});dicebear openPeeps --accessories "eyepatch" "glasses" "glasses2"
accessoriesProbability
TypeintegerMinimum 0Maximum 100010020https://api.dicebear.com/9.x/open-peeps/svg?accessoriesProbability=0
createAvatar(openPeeps, {
accessoriesProbability: 0
});dicebear openPeeps --accessoriesProbability 0
clothingColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$8fa7df9ddadb78e185e279c7e78276fdea6bffcf77https://api.dicebear.com/9.x/open-peeps/svg?clothingColor=8fa7df,9ddadb,78e185
createAvatar(openPeeps, {
clothingColor: ["8fa7df","9ddadb","78e185"]
});dicebear openPeeps --clothingColor "8fa7df" "9ddadb" "78e185"
face
TypearrayangryWithFangaweblankcalmcheekyconcernedconcernedFearcontemptcutecyclopsdriveneatingHappyexplainingeyesClosedfearhecticlovingGrin1lovingGrin2monsteroldrageserioussmilesmileBigsmileLOLsmileTeethGapsolemnsuspicioustiredveryAngryangryWithFangaweblankcalmcheekyconcernedconcernedFearcontemptcutecyclopsdriveneatingHappyexplainingeyesClosedfearhecticlovingGrin1lovingGrin2monsteroldrageserioussmilesmileBigsmileLOLsmileTeethGapsolemnsuspicioustiredveryAngryhttps://api.dicebear.com/9.x/open-peeps/svg?face=angryWithFang,awe,blank
createAvatar(openPeeps, {
face: ["angryWithFang","awe","blank"]
});dicebear openPeeps --face "angryWithFang" "awe" "blank"
facialHair
Typearraychinfullfull2full3full4goatee1goatee2moustache1moustache2moustache3moustache4moustache5moustache6moustache7moustache8moustache9chinfullfull2full3full4goatee1goatee2moustache1moustache2moustache3moustache4moustache5moustache6moustache7moustache8moustache9https://api.dicebear.com/9.x/open-peeps/svg?facialHair=chin,full,full2
createAvatar(openPeeps, {
facialHair: ["chin","full","full2"]
});dicebear openPeeps --facialHair "chin" "full" "full2"
facialHairProbability
TypeintegerMinimum 0Maximum 100010010https://api.dicebear.com/9.x/open-peeps/svg?facialHairProbability=0
createAvatar(openPeeps, {
facialHairProbability: 0
});dicebear openPeeps --facialHairProbability 0
head
Typearrayafrobangsbangs2bantuKnotsbearbunbun2bunscornrowscornrows2dreads1dreads2flatTopflatTopLonggrayBungrayMediumgrayShorthatBeaniehatHiphijablonglongAfrolongBangslongCurlymedium1medium2medium3mediumBangsmediumBangs2mediumBangs3mediumStraightmohawkmohawk2noHair1noHair2noHair3pompshaved1shaved2shaved3short1short2short3short4short5turbantwiststwists2afrobangsbangs2bantuKnotsbearbunbun2bunscornrowscornrows2dreads1dreads2flatTopflatTopLonggrayBungrayMediumgrayShorthatBeaniehatHiphijablonglongAfrolongBangslongCurlymedium1medium2medium3mediumBangsmediumBangs2mediumBangs3mediumStraightmohawkmohawk2noHair1noHair2noHair3pompshaved1shaved2shaved3short1short2short3short4short5turbantwiststwists2https://api.dicebear.com/9.x/open-peeps/svg?head=afro,bangs,bangs2
createAvatar(openPeeps, {
head: ["afro","bangs","bangs2"]
});dicebear openPeeps --head "afro" "bangs" "bangs2"
headContrastColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$2c1b184a312c724133a55728b58143c93305d6b370e8e1e1ecdcbff59797https://api.dicebear.com/9.x/open-peeps/svg?headContrastColor=2c1b18,4a312c,724133
createAvatar(openPeeps, {
headContrastColor: ["2c1b18","4a312c","724133"]
});dicebear openPeeps --headContrastColor "2c1b18" "4a312c" "724133"
mask
TypearraymedicalMaskrespiratormedicalMaskrespiratorhttps://api.dicebear.com/9.x/open-peeps/svg?mask=medicalMask,respirator
createAvatar(openPeeps, {
mask: ["medicalMask","respirator"]
});dicebear openPeeps --mask "medicalMask" "respirator"
maskProbability
TypeintegerMinimum 0Maximum 10001005https://api.dicebear.com/9.x/open-peeps/svg?maskProbability=0
createAvatar(openPeeps, {
maskProbability: 0
});dicebear openPeeps --maskProbability 0
skinColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$694d3dae5d29d08b5bedb98affdbb4https://api.dicebear.com/9.x/open-peeps/svg?skinColor=694d3d,ae5d29,d08b5b
createAvatar(openPeeps, {
skinColor: ["694d3d","ae5d29","d08b5b"]
});dicebear openPeeps --skinColor "694d3d" "ae5d29" "d08b5b"
Details
| Naming | |
|---|---|
| Collection Import | import { openPeeps } from '@dicebear/collection'; |
| Package Import | import * as style from '@dicebear/open-peeps'; |
| CLI | dicebear openPeeps |
| HTTP-API | https://api.dicebear.com/9.x/open-peeps/svg |
| JSON Schema | https://api.dicebear.com/9.x/open-peeps/schema.json |
| Source | |
|---|---|
| Title | Open Peeps |
| Creator | Pablo Stanley |
| Website | https://twitter.com/pablostanley |
| License | CC0 1.0 |
| Source | https://www.openpeeps.com/ |