Playground
From duck_dipper · 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
asset duck_dipper "Duck dipper" complexity=4// the toy factory's duck machine, front +z toward the belt: a chunky sky-blue cabinet on a white plinth, a big// white paint vat on top brimming with yellow paint (drips down its sides, a happy face on its front, bubbles// popping on the surface), and a little crane on a striped post at the back whose boom swings a rubber duck over// the vat. A dark slot in the cabinet front feeds a cherry-railed chute (part `chute`, toys leave near// (0, .75, .95)). Idle: the vat hums, the paint bubbles, the duck sways, the side cog turns, the beacon pulses.// work (1.6 s): the boom dips the duck into the paint, swishes it about and lifts it out in a yellow splashlet bodyC = skylet trimC = whitelet paintC = sunflowerlet popC = cherrylet metalC = silverlet beakC = tangerinelet slotC = glassDark*.6// the cabinet: a white plinth band under sky-blue panels, a duck badge, three buttons and a dark toy slotbox base at=(0, 0, -.1) size=(1.8, .8, 1.5) round=.14 bev=2 bands=[.12:bodyC .78:trimC .85:bodyC] color=trimCbox hood at=(0, .44, .615) size=(.86, .34, .1) round=.06 color=popCbox mouth at=(0, .49, .64) size=(.68, .24, .08) round=.05 color=slotCslab badge at=(.6, .46, .665) pts=[-.13,-.06 .09,-.06 .12,-.01 .07,.05 .1,.07 .16,.08 .1,.11 .08,.15 .02,.15 0,.1 .02,.06 -.1,.06 -.17,.11 -.16,.03] t=.02 round=.006 color=paintCball btn x3 at=(-.58, .5, .655) row=(.14, 0, 0) r=(.05, .05, .03) color=sel(i, popC, paintC, lime) segs=8 rings=4// the chute: a white slide with cherry rails, out of the slot and down toward the beltbox chute at=(0, .64, .8) tilt=10 size=(.56, .05, .44) round=.02 color=trimCbox rail on=chute at=(.26, .02, 0) mirror size=(.05, .09, .44) round=.02 color=popCrod strut at=(0, .3, .66) to=(0, .32, .26) r=.03 sides=8 color=metalC// the paint vat: a white tub, yellow where the paint slops over, drips down its sides, a cherry rim and a facelathe vat at=(.05, .8, -.05) h=.52 r=.5 prof=[0:.84 .12:.95 .5:1 .88:1.02 1:1.04] open=top bands=[.74:paintC] color=trimC segs=20 rings=7 jointcyl paint on=vat at=(0, .44, 0) h=.03 r=.505 color=paintC segs=22torus rim on=vat at=(0, .52, 0) R=.52 r=.045 color=popC segs=20 sides=6ball drip x4 on=vat ring ring0=45 at=(.5, .36, 0) r=(.05, .1, .07) color=paintC segs=8 rings=5face look on=vat eyes=round mouth=grin spacing=25 eyeY=0 mouthY=-28 mouthW=.5 size=.27 detail=.5ball bubble x3 on=paint ring ring0=20 at=(.26, .03, 0) r=.055 color=paintC*1.1 segs=6 rings=4 joint// the crane: a striped post, a cherry turret aimed over the vat, a sky boom with a counterweightcyl post at=(-.62, .8, -.62) h=1.16 r=.085 bands=[.5:popC .58:metalC] color=metalC segs=12ball turret on=post at=(0, 1.2, 0) yaw=45 r=(.15, .12, .15) color=popC segs=14 rings=8 jointbox boom on=turret at=(0, -.07, .44) size=(.14, .13, .9) round=.05 color=bodyCbox weight on=turret at=(0, -.11, -.2) size=(.26, .22, .22) round=.07 color=trimCrod cable on=boom at=(0, 0, .4) to=(0, -.26, 0) r=.018 sides=6 color=iron jointball claw on=cable at=end r=.05 color=metalC segs=10 rings=6// the rubber duck on the hook, turned to face the beltball duck on=cable at=end+(0, -.13, 0) yaw=-45 r=(.12, .1, .14) color=paintC segs=14 rings=9 jointball dhead on=duck at=(0, .1, .1) r=.08 color=paintC segs=10 rings=7cone beak on=dhead at=(0, -.01, .065) rot=(90, 0, 0) h=.07 r=.035 r2=.012 color=beakC segs=8ball deye on=dhead at=(.04, .025, .06) mirror r=.016 color=inkDark segs=6 rings=4cone dtail on=duck at=(0, .02, -.12) rot=(-60, 0, 0) h=.07 r=.05 color=paintC segs=8ball wing on=duck at=(.1, .01, -.01) mirror r=(.03, .06, .09) color=paintC*.92 segs=8 rings=5// the beacon and the side cogcyl lampbase at=(.7, .8, .35) h=.08 r=.08 color=metalC segs=12ball lamp on=lampbase at=(0, .14, 0) r=.09 color=glow ink=glow segs=10 rings=7 jointcyl cog at=(.89, .42, -.2) rot=(0, 0, -90) h=.06 r=.2 color=metalC segs=16 jointbox tooth x3 on=cog ring at=(0, -.012+.004*i, 0) size=(.5, .075, .07) round=.015 bev=1 color=metalCball hub on=cog at=(0, .06, 0) r=(.07, .03, .07) color=popC segs=10 rings=5// cel FX: a yellow splash while it worksfx work: splash on=paint at=top speed=1.4 spread=40 n=8 hz=1.3 size=.05 color=paintC color2=lemon// idle: the vat hums, bubbles swell and pop, the crane and duck sway, the cog turns, the beacon pulsesanim vat s sin amp=.01 hz=3anim bubble s keys=[0:-.7 .55:.2 .62:-.99 1:-.7] hz=.8 stagger=.37anim turret ry sin amp=5 hz=.22anim cable rx sin amp=5 hz=.6anim duck ry sin amp=12 hz=.45anim cog ry spin hz=.3anim lamp s keys=[0:0 .5:.22 1:0] hz=.9// work (1.6 s): the boom dips the duck under the paint (the cable stays plumb), a swish, then up and outanim work: turret rx keys=[0:0 .12:-5 .38:26 .5:26 .56:22 .62:26 .82:-6 .92:2 1:0] hz=.625 onceanim work: cable rx keys=[0:0 .12:5 .38:-26 .5:-26 .56:-22 .62:-26 .82:6 .92:-2 1:0] hz=.625 onceanim work: duck rz keys=[0:0 .45:0 .5:14 .56:-14 .62:10 .68:0 1:0] hz=.625 onceanim work: vat py keys=[0:0 .4:0 .44:-.02 .5:.01 .56:0 1:0] hz=.625 onceanim work: lamp s keys=[0:0 .1:.5 .2:0 .3:.5 .4:0 .82:.5 .92:0 1:0] hz=.625 once
Clean: no issues on this seed.
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4