Skip to main content

Croodles

Sean Moore Lionel Quinn Lydia Ellis Bryan Phelps Ronald Frank Annette Klein Brent Hill Stanley Newman Grace Singleton

Implementation of Croodles - Doodle your face by vijay verma. Licensed under CC BY 4.0.

note

While our code is MIT licensed, the design is licensed under CC BY 4.0. See license overview for more information.

Usage#

HTTP-API (recommended)#

Our free HTTP-API is the easiest way to use this avatar style. Just use the following URL as image source.

https://avatars.dicebear.com/api/croodles/:seed.svg

See the HTTP API documentation for more information.

NPM#

Install the Avatars and this avatar style with the following command.

npm install --save @dicebear/avatars @dicebear/croodles

Now you are ready to create your first Avatar.

import { createAvatar } from '@dicebear/avatars';
import * as style from '@dicebear/croodles';
let svg = createAvatar(style, {
seed: 'custom-seed',
// ... and other options
});

Options#

Base options#

seed

Seed

Alias: s

Default: undefined

Type: string

dataUri

Data URI

Default: false

Type: boolean

flip

Flip

Default: false

Type: boolean

rotate

Rotate

Default: 0

Type: integer

Minimum: 0

Maximum: 360

scale

Scale

Default: 100

Type: integer

Minimum: 0

Maximum: 200

radius

Radius

Alias: r

Default: 0

Type: integer

Minimum: 0

Maximum: 50

size

Size

Default: undefined

Type: integer

Minimum: 1

backgroundColor

Background Color

Alias: b

Default: undefined

Type:

translateX

Translate X%

Default: 0

Type: integer

Minimum: -100

Maximum: 100

translateY

Translate Y%

Default: 0

Type: integer

Minimum: -100

Maximum: 100

Style options#

face

Face

Default: variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

Type: array

Items:

Type: string

Enum: variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

nose

Nose

Default: variant09, variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

Type: array

Items:

Type: string

Enum: variant09, variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

beard

Beard

Default: variant05, variant04, variant03, variant02, variant01

Type: array

Items:

Type: string

Enum: variant05, variant04, variant03, variant02, variant01

beardProbability

Beard Probability

Default: 10

Type: integer

Minimum: 0

Maximum: 100

mouth

Mouth

Default: variant18, variant17, variant16, variant15, variant14, variant13, variant12, variant11, variant10, variant09, variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

Type: array

Items:

Type: string

Enum: variant18, variant17, variant16, variant15, variant14, variant13, variant12, variant11, variant10, variant09, variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

top

Top

Default: variant30, variant29, variant28, variant27, variant26, variant25, variant24, variant23, variant22, variant21, variant20, variant19, variant18, variant17, variant16, variant15, variant14, variant13, variant12, variant11, variant10, variant09, variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

Type: array

Items:

Type: string

Enum: variant30, variant29, variant28, variant27, variant26, variant25, variant24, variant23, variant22, variant21, variant20, variant19, variant18, variant17, variant16, variant15, variant14, variant13, variant12, variant11, variant10, variant09, variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

mustache

Mustache

Default: variant04, variant03, variant02, variant01

Type: array

Items:

Type: string

Enum: variant04, variant03, variant02, variant01

mustacheProbability

Mustache Probability

Default: 10

Type: integer

Minimum: 0

Maximum: 100

eyes

Eyes

Default: variant16, variant15, variant14, variant13, variant12, variant11, variant10, variant09, variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

Type: array

Items:

Type: string

Enum: variant16, variant15, variant14, variant13, variant12, variant11, variant10, variant09, variant08, variant07, variant06, variant05, variant04, variant03, variant02, variant01

topColor

Top Color

Default: yellow, purple, red, blue, green, black

Type: array

Items:

Type: string

Enum: yellow, purple, red, blue, green, black

or

Type: string

Pattern: ^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$

baseColor

Base Color

Default: transparent

Type: array

Items:

Type: string

Enum: transparent, white

or

Type: string

Pattern: ^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$