Skip to content

initials

Exact style-specific options from the bundled definition. Use these alongside the shared avatar options and core API. Back to the style catalog and licenses.

local dicebear = require('love_dicebear')
local svg, settings = dicebear.generate('initials', {seed = 'player-42'})
local options = dicebear.describe('initials').options

Components

initials

  • Variant option: initialsVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: initialsProbability. Range 0–100; default 100.
Variant Tags
alt —
default —

letters

  • Variant option: lettersVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: lettersProbability. Range 0–100; default 100.
Variant Tags
double —
single —

Color palettes

Each option accepts a hex color or palette array. An empty table is transparent. Bundled contrast and exclusion rules can affect the seeded choice.

backgroundColor

#2a7e7e, #2b8248, #2b8265, #2d862d, #347a9d, #48822b, #4b73c3, #627e2a, #6a6acd, #777728, #825ec9, #8e6e2f, #9f53c6, #ac6039, #bb3ebb, #c14497, #c34b73, #c44f4f

textColor

#ffffff, #000000