Playground
From steam_tractor · 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
asset steam_tractor "Steam tractor" complexity=5// a tiny steam tractor: a fat rounded boiler with a smiling face, a tall flared chimney that puffs,// huge rear wheels and small front ones, a striped canopy over a seat, brass rings and lamps// readable from afar: the big back wheels, the chimney and the round happy boilerlet BR = .5..0.6let FR = .27..0.33let CH = .65..0.8let body = cherry:3|teal:2|cobalt|sunflower|mint:2|corallet trim = cream:3|whitelet darkC = iron:2|greystone|walnutlet popC = brass:3|marigold|copper// chassis frame: the root bone, with axles and the towing hitchbox chassis at=(0, .28, 0) size=(.7, .2, 2.1) round=.07 color=darkC jointrod axleB on=chassis at=(-.5, BR-.28, -.65) to=(1, 0, 0) r=.06 sides=8 color=darkCrod axleF on=chassis at=(-.45, FR-.28, .85) to=(.9, 0, 0) r=.05 sides=8 color=darkCbox hitch on=chassis at=(0, .04, -1.0) size=(.18, .1, .25) round=.03 color=popC// the boiler: a long fat ellipsoid with a pale belly and brass hoopsball boiler on=chassis at=(0, .5, .1) r=(.44, .44, .8) color=body under=trim segs=28 rings=16 jointtorus hoop x2 on=boiler row=(0, 0, .6) at=(0, 0, 0) rot=(90, 0, 0) R=.41 r=.035 segs=24 sides=6 color=popCball dome on=boiler at=(0, .37, -.05) r=(.14, .13, .14) color=popC segs=12 rings=8cyl whistle on=boiler at=(0, .3, -.4) h=.2 r=.045 round=.02 color=popC segs=10 joint// the chimney: flared top with a brass rim, three steam puffs above itlathe chimney on=boiler at=(0, .28, .5) h=CH r=.12 prof=[0:1 .55:.75 .85:.8 1:1.35] bands=[.9:popC] color=darkC segs=16 rings=10puff smoke x3 on=chimney at=(0, CH+.1, 0) row=(0, .22, 0) r=.12+.03*i color=white noise=.05 segs=12 rings=8 joint// face on the boiler front, lamps on the chassis noseface look on=boiler eyes=round mouth=smile blush size=.2 spacing=26 eyeY=12 mouthY=-22 mouthW=.35 detail=.6ball lamp on=chassis at=(.2, .3, 1.12) mirror r=(.1, .1, .07) color=glow ink=glow segs=10 rings=6// seat and striped canopy on four slim postsbox seat on=chassis at=(0, .12, -.82) size=(.45, .3, .3) round=.06 color=body*.85rod post x2 on=chassis row=(0, 0, .55) at=(.34, .18, -.65) mirror to=(.06, .97, 0) r=.04 sides=6 color=popCbox roof on=chassis at=(0, 1.12, -.55) size=(1.0, .1, .95) round=.04 stripes=[body trim] panels=6 color=body// wheels: big rear pair, small front pairwheel wheel on=chassis at=(.55, BR-.28, -.65) mirror r=BR w=.3 hub=trim tyre=tyre jointwheel fwheel on=chassis at=(.42, FR-.28, .85) mirror r=FR w=.18 hub=trim tyre=tyre joint// idle: engine rumble, a breathing boiler, steam rising from the chimneyanim chassis py sin amp=.006 hz=5anim boiler breatheanim smoke py keys=[0:0 1:.7] hz=.4 stagger=.33anim smoke s keys=[0:-.75 .2:0 .7:.2 1:-.9] hz=.4 stagger=.33// drive: wheels roll in step (front ones turn faster), the body rocks, chuffs come quickeranim drive: wheel rx spin hz=.6anim drive: fwheel rx spin hz=1.1anim drive: chassis rz sin amp=1.2 hz=3anim drive: chassis rx sin amp=1 hz=2anim drive: smoke py keys=[0:0 1:.7] hz=.9 stagger=.33anim drive: smoke s keys=[0:-.75 .2:0 .7:.2 1:-.9] hz=.9 stagger=.33// toot: the whistle swells and the boiler puffs up, steam bursts out of the chimneyanim toot: whistle s keys=[0:0 .15:.6 .6:.4 1:0] hz=.8 onceanim toot: boiler s keys=[0:0 .2:.06 1:0] hz=.8 onceanim toot: smoke s keys=[0:-.5 .3:.6 1:-.9] hz=1 stagger=.2 once
Clean: no issues on this seed.
Loading
seed
Shapes— / 100
Triangles— / 8,000
Draw calls— / 4