slice¶
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('slice', {seed = 'player-42'})
local options = dicebear.describe('slice').options
Components¶
cuts¶
- Variant option:
cutsVariant. Accepts a name, allowed-name array, or weight map;{}hides it. - Visibility option:
cutsProbability. Range 0–100; default 100.
| Variant | Tags |
|---|---|
five |
— |
fiveDeep |
— |
fiveKick |
— |
fiveWave |
— |
quad |
— |
quadDeep |
— |
quadPair |
— |
quadZig |
— |
six |
— |
sixDeep |
— |
sixZig |
— |
tri |
— |
triDeep |
— |
triFan |
— |
triKick |
— |
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 |
|---|---|
arch |
— |
diamond |
— |
disc |
— |
egg |
— |
hexagon |
— |
lens |
— |
lump |
— |
pill |
— |
square |
— |
squircle |
— |
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¶
#eef0f2, #eff2ef, #f2f1ee, #f6f1ec, #f7f5f0
bodyColor¶
#598ba9, #5b8e94, #5b9083, #5b9367, #6b81c2, #7d8b56, #8f72c2, #928455, #a67a55, #b360ab, #c25f80, #c56455