Playground
From snack_vending · Compiles in your browser · $0
CtrlShiftS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
asset snack_vending "Snack machine" complexity=4// a chunky snack vending machine: a coloured cabinet with a deep window bay full of snacks on four// shelves (bags, cans and bars in toy colours), a glowing selection panel with a keypad and a coin// slot down the right, a lit header sign and a pickup flap at the bottomlet S = .97..1.03let bodyC = cherry:3|cobalt:2|teal|tangerine|grapelet trimC = white:3|cream|sunflowerlet glowC = glow:3|aqua// the cabinet: a back block, a left side wall, the panel column, a header and a kick basebox back at=(0, 0, -.16*S) size=(.96, 1.83, .48)*S round=.05 color=bodyCbox wall at=(-.47*S, 0, .06*S) size=(.06, 1.86, .7)*S round=.025 color=bodyCbox column at=(.36*S, 0, .06*S) size=(.28, 1.86, .7)*S round=.04 color=bodyCbox header at=(-.11*S, 1.48*S, .06*S) size=(.66, .38, .7)*S round=.03 color=bodyCbox kick at=(-.11*S, 0, .06*S) size=(.66, .42, .7)*S round=.03 bands=[.2:bodyC*.8] color=inkDarkbox sign on=header at=(0, .08, .35*S) size=(.56, .22, .02) round=.02 color=glowC ink=glowbox flap on=kick at=(0, .22, .35*S) size=(.5, .14, .02) round=.02 color=inkDark*1.3// the window bay: a dark back wall, four shelves and the snacks on thembox bay on=back at=(-.11*S, .42*S, .245*S) size=(.62, 1.06, .02)*S round=.01 color=glassDarkbox shelf x4 on=bay at=(0, .03+.39*S, .12) row=(0, .26*S, 0) size=(.6*S, .025, .24) round=.008 color=silverbox 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=thincyl 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// the selection panel: a glowing screen, a keypad, a coin slotbox screen on=column at=(0, 1.22*S, .35*S) size=(.18, .2, .02) round=.015 color=glowC ink=glowbox key x6 on=column at=(-.04, .95*S, .36*S) row=(0, .07, 0) size=(.05, .045, .025) round=.012 color=trimCbox key2 x6 on=column at=(.04, .95*S, .36*S) row=(0, .07, 0) size=(.05, .045, .025) round=.012 color=trimCbox coin on=column at=(0, .58*S, .36*S) size=(.12, .16, .025) round=.02 color=silverbox slot on=coin at=(0, .05, .02) size=(.015, .07, .012) round=.005 color=inkDark ink=nonebox stripe on=column at=(0, .3*S, .36*S) size=(.2, .05, .02) round=.02 color=trimC
Clean: no issues on this seed.
Loading
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4