Skip to main content

Configuration matrix

Which builder option each engine reads, with defaults. Options not listed for an engine are ignored by it.

Universal

OptionMethodDefaultConstraint
Seedseed()falls back to name
Namename()
Sizesize()2008–2048

Initials

OptionMethodDefault
shapeshape()circle (circle/square/hexagon)
foregroundLightnessforegroundLightness()0.35
backgroundLightnessbackgroundLightness()0.8
fontSizefontSize()computed
fontWeightfontWeight()normal

Gravatar

OptionMethodDefault
defaultdefaultImage()mp
ratingrating()g

DiceBear

OptionMethodDefault
stylestyle()avataaars
backgroundColorbackgroundColor()
radiusradius()

Pixel

OptionMethodDefault
pixelspixels()5
symmetrysymmetry()true
foregroundLightnessforegroundLightness()0.5
backgroundLightnessbackgroundLightness()0.9
backgroundbackground()true

Multicolor pixel

OptionMethodDefault
pixelspixels()5
symmetrysymmetry()true
numColorsnumColors()5
fillAllfillAll()true

Bauhaus

OptionMethodDefault
numShapesnumShapes()4

The Bauhaus palette is fixed (one of four built-in sets, chosen by hash).

Gradient

OptionMethodDefault
shapeshape()circle
gradientTypegradientType()horizontal
colorStopscolorStops()3

gradientType accepts horizontal, vertical, diagonal, radial, wavy, marble. The marble type additionally reads a marbleBlur integer (default 7).