Which builder option each engine reads, with defaults. Options not listed for an
engine are ignored by it.
Universal
| Option | Method | Default | Constraint |
|---|
| Seed | seed() | — | falls back to name |
| Name | name() | — | |
| Size | size() | 200 | 8–2048 |
Initials
| Option | Method | Default |
|---|
shape | shape() | circle (circle/square/hexagon) |
foregroundLightness | foregroundLightness() | 0.35 |
backgroundLightness | backgroundLightness() | 0.8 |
fontSize | fontSize() | computed |
fontWeight | fontWeight() | normal |
Gravatar
| Option | Method | Default |
|---|
default | defaultImage() | mp |
rating | rating() | g |
DiceBear
| Option | Method | Default |
|---|
style | style() | avataaars |
backgroundColor | backgroundColor() | — |
radius | radius() | — |
Pixel
| Option | Method | Default |
|---|
pixels | pixels() | 5 |
symmetry | symmetry() | true |
foregroundLightness | foregroundLightness() | 0.5 |
backgroundLightness | backgroundLightness() | 0.9 |
background | background() | true |
Multicolor pixel
| Option | Method | Default |
|---|
pixels | pixels() | 5 |
symmetry | symmetry() | true |
numColors | numColors() | 5 |
fillAll | fillAll() | true |
Bauhaus
| Option | Method | Default |
|---|
numShapes | numShapes() | 4 |
The Bauhaus palette is fixed (one of four built-in sets, chosen by hash).
Gradient
| Option | Method | Default |
|---|
shape | shape() | circle |
gradientType | gradientType() | horizontal |
colorStops | colorStops() | 3 |
gradientType accepts horizontal, vertical, diagonal, radial, wavy,
marble. The marble type additionally reads a marbleBlur integer (default
7).