Skip to content

disco

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('disco', {seed = 'player-42'})
local options = dicebear.describe('disco').options

Components

pattern

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

shape

  • Variant option: shapeVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: shapeProbability. Range 0–100; default 100.
Variant Tags
circle —
hexagon —
pentagon —
rectangle —
triangle —

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

#01837a, #217e9c, #3d8349, #5674b0, #6f7b20, #7d6ca7, #8e720f, #a96433, #af5b6d

shapeColor

#000000, #ffffff