Playground
From treasure_chest · 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
33
34
35
36
asset treasure_chest "Treasure chest" complexity=4// a fat banded treasure chest on little feet: plank sides, iron corner straps and studs, a brass lock// plate with a keyhole, a domed lid hinged at the back. Inside, a heap of gold and a gem wait. On// open the lid swings back and sparkles pop over the coins.let S = .95..1.08let woodC = oak:2|walnut:2|redwood|honeylet bandC = iron:3|brass|copperlet goldC = sunflower:2|marigoldlet gemC = cherry|cobalt|mint|grape|aqua// the box on its feetbox chest at=(0, .06, 0) size=(.92, .5, .6)*S round=.05 bev=2 stripes=[woodC woodC*.86] panels=5 color=woodCbox foot x2 on=chest at=(0, -.06, 0) row=(0, 0, .48)*S size=(.94, .07, .1)*S round=.03 color=bandCbox strap x2 on=chest at=(0, .006, 0) row=(.6, 0, 0)*S size=(.08, .52, .64)*S round=.02 color=bandCball stud x4 on=strap at=(0, .1, .315*S) row=(0, .11, 0) r=.022 color=bandC*1.3 segs=6 rings=4box plate on=chest at=(0, .25*S, .3*S) size=(.16, .2, .04)*S round=.02 color=brassbox keyhole on=plate at=(0, .05, .025) size=(.03, .07, .02) round=.01 color=inkDark// the gold inside, under the lidpuff gold on=chest at=(0, .5*S, 0) r=(.4, .1, .25)*S color=goldC under=marigold*.9 segs=20 rings=8cyl coin x5 on=gold ring=40 at=(.2*S, .08, 0) rot=(20, 0, 15) h=.02 r=.06 color=goldC cap=marigold segs=10ball gem on=gold at=(-.12*S, .1, .06) r=(.07, .06, .07)*S color=gemC panels=6 segs=6 rings=4// coins spilled on the floor in frontcyl spill x3 on=chest at=(0, -.05, .44*S) row=(.17, .003, .03) rot=(0, i*40, 0) h=.02 r=.065 color=goldC cap=marigold segs=12// the domed lid, hinged at the back edgebox hinge on=chest at=(0, .5*S, -.27*S) size=(.9, .03, .05)*S round=.01 color=bandC jointbox lid on=hinge at=(0, 0, .29*S) size=(.94, .14, .62)*S round=.05 bev=2 color=woodCball dome on=lid at=(0, .13*S, 0) r=(.46, .17, .3)*S half stripes=[woodC woodC*.86] panels=5 color=woodC segs=28 rings=10box lstrap x2 on=lid at=(0, .006, 0) row=(.6, 0, 0)*S size=(.08, .16, .64)*S round=.02 color=bandCtorus band x2 on=dome at=(0, 0, 0) row=(.6, 0, 0)*S rot=(0, 0, 90) R=.3*S r=.025 arc=180 scale=(1, 1.02, 1.03) color=bandC segs=16 sides=5fx open: sparkle on=gold at=top+(0, .15, 0) n=8 spread=.3anim open: hinge rx keys=[0:0 .5:-115 .7:-100 1:-105] hz=.8 once
Clean: no issues on this seed.
Loading
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4