Skip to content

glass

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

Components

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
a —
d —
e —
g —
i —
n —
r —
t —

shape01

  • Variant option: shape01Variant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: shape01Probability. Range 0–100; default 100.
  • Alias of shape. Local overrides are supported; HTTP alias overrides are rejected.
Variant Tags
a —
d —
e —
g —
i —
n —
r —
t —

shape02

  • Variant option: shape02Variant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: shape02Probability. Range 0–100; default 100.
  • Alias of shape. Local overrides are supported; HTTP alias overrides are rejected.
Variant Tags
a —
d —
e —
g —
i —
n —
r —
t —

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

#4747eb, #4762eb, #477eeb, #4799eb, #47b4eb, #47d0eb, #47eb47, #47eb62, #47eb7e, #47eb99, #47ebb4, #47ebd0, #47ebeb, #6247eb, #62eb47, #7e47eb, #7eeb47, #9947eb, #99eb47, #b447eb, #b4eb47, #d047eb, #d0eb47, #eb4747, #eb4762, #eb477e, #eb4799, #eb47d0, #eb47eb, #eb6247, #eb7e47, #eb9947, #ebb447, #ebd047, #ebeb47

Animation

Enable all selected artwork timelines with animation = true, or control a named timeline:

Timeline Switch Speed Delay
drift driftAnimation driftAnimationSpeed driftAnimationDelay

Some artwork variants may be static. See animation options and native playback.