Snack machine · celworld
seed

Snack machine

snack_vending v1Agent-madec4
Open in Playground

v1 cost

$0.446est.

Agent-made: its share of a Claude Code session, priced as API-equivalent Opus 5.5.

Output share
2.5k
Time share
90s
The agent session
All 1 version$0.446

Budget

c4 · 31 lines
Shapes44 / 70
Triangles4,728 / 6,000
Draw calls4 / 4
States
None: it rests
Used in
Made
1asset snack_vending "Snack machine" complexity=4
2// a chunky snack vending machine: a coloured cabinet with a deep window bay full of snacks on four
3// shelves (bags, cans and bars in toy colours), a glowing selection panel with a keypad and a coin
4// slot down the right, a lit header sign and a pickup flap at the bottom
5let S = .97..1.03
6let bodyC = cherry:3|cobalt:2|teal|tangerine|grape
7let trimC = white:3|cream|sunflower
8let glowC = glow:3|aqua
9
10// the cabinet: a back block, a left side wall, the panel column, a header and a kick base
11box back at=(0, 0, -.16*S) size=(.96, 1.83, .48)*S round=.05 color=bodyC
12box wall at=(-.47*S, 0, .06*S) size=(.06, 1.86, .7)*S round=.025 color=bodyC
13box column at=(.36*S, 0, .06*S) size=(.28, 1.86, .7)*S round=.04 color=bodyC
14box header at=(-.11*S, 1.48*S, .06*S) size=(.66, .38, .7)*S round=.03 color=bodyC
15box kick at=(-.11*S, 0, .06*S) size=(.66, .42, .7)*S round=.03 bands=[.2:bodyC*.8] color=inkDark
16box sign on=header at=(0, .08, .35*S) size=(.56, .22, .02) round=.02 color=glowC ink=glow
17box flap on=kick at=(0, .22, .35*S) size=(.5, .14, .02) round=.02 color=inkDark*1.3
18
19// the window bay: a dark back wall, four shelves and the snacks on them
20box bay on=back at=(-.11*S, .42*S, .245*S) size=(.62, 1.06, .02)*S round=.01 color=glassDark
21box shelf x4 on=bay at=(0, .03+.39*S, .12) row=(0, .26*S, 0) size=(.6*S, .025, .24) round=.008 color=silver
22box bag x2 on=shelf at=(-.2, .025, 0) row=(.13, 0, 0) size=(.1, .17, .07) round=.03 color=sel(parent.i, tangerine, lime, pink, sunflower) ink=thin
23cyl can x2 on=shelf at=(.12, .025, 0) row=(.11, 0, 0) h=.15 r=.04 bands=[.85:silver] color=sel(parent.i, cobalt, cherry, mint, grape) segs=12 ink=thin
24
25// the selection panel: a glowing screen, a keypad, a coin slot
26box screen on=column at=(0, 1.22*S, .35*S) size=(.18, .2, .02) round=.015 color=glowC ink=glow
27box key x6 on=column at=(-.04, .95*S, .36*S) row=(0, .07, 0) size=(.05, .045, .025) round=.012 color=trimC
28box key2 x6 on=column at=(.04, .95*S, .36*S) row=(0, .07, 0) size=(.05, .045, .025) round=.012 color=trimC
29box coin on=column at=(0, .58*S, .36*S) size=(.12, .16, .025) round=.02 color=silver
30box slot on=coin at=(0, .05, .02) size=(.015, .07, .012) round=.005 color=inkDark ink=none
31box stripe on=column at=(0, .3*S, .36*S) size=(.2, .05, .02) round=.02 color=trimC
32