Skip to content

shapes

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

Components

shape01

  • Variant option: shape01Variant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: shape01Probability. Range 0–100; default 100.
Variant Tags
ellipse —
ellipseFilled —
line —
polygon —
polygonFilled —
rectangle —
rectangleFilled —

shape02

  • Variant option: shape02Variant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: shape02Probability. Range 0–100; default 100.
Variant Tags
ellipse —
ellipseFilled —
line —
polygon —
polygonFilled —
rectangle —
rectangleFilled —

shape03

  • Variant option: shape03Variant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: shape03Probability. Range 0–100; default 100.
Variant Tags
ellipse —
ellipseFilled —
line —
polygon —
polygonFilled —
rectangle —
rectangleFilled —

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

#0a5b83, #1c799f, #69d2e7, #f1f4dc, #f88c49

shape1Color

#0a5b83, #1c799f, #69d2e7, #f1f4dc, #f88c49

shape2Color

#0a5b83, #1c799f, #69d2e7, #f1f4dc, #f88c49

shape3Color

#0a5b83, #1c799f, #69d2e7, #f1f4dc, #f88c49

Animation

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

Timeline Switch Speed Delay
sway swayAnimation swayAnimationSpeed swayAnimationDelay

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