Playground
From campfire · 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
asset campfire "Cozy campfire" complexity=5// a ring of stones round a low fire of crossed logs, a little pot hanging from a tripod over the flames.// readable from afar: the bright layered flame, the pot on its three legs, the fat stone ring.// idle: flames flicker, embers pulse, the pot sways, smoke and sparks rise.// stoke: the flames leap. boil: the pot rattles. stir: the spoon swirls.let SR = .5..0.58let F = .9..1.12let stoneC = rockGrey:3|rockWarm:2|rockCool|rockSandlet logC = barkB:2|walnut|redwood|barkClet potC = cobalt:3|teal|cherry|grapelet hot = tangerine:3|tomato// ground: an ash bedcyl ash h=.04 r=.66 round=.015 color=bedSoil segs=28 joint// stone ring and seatsball stone x8..10 on=ash ring=6 at=(SR, .08, 0) r=(.15, .1, .12) color=stoneC~ segs=10 rings=6cyl stump x2 on=ash ring ring0=0 at=(1.3, 0, 0) h=.3 r=.2 round=.035 color=barkA cap=honey segs=14// crossed logscyl log x4 on=ash ring=8 ring0=20 at=(.3, .05, 0) roll=sel(i, 64, 74, 64, 74) h=.62 r=.065 round=.02 color=logC cap=birch segs=10ball ember x4 on=ash ring=20 ring0=55 at=(.2, .07, 0) r=(.07, .05, .06) color=tomato ink=glow segs=8 rings=5 joint// flames: three nested teardrops and four leaning tongueslathe flameA on=ash at=(0, .1, 0) h=.46*F r=.2 prof=[0:.55 .25:1 .6:.7 1:.04] color=hot ink=glow segs=12 rings=8 jointlathe flameB on=ash at=(0, .12, 0) h=.36*F r=.15 prof=[0:.55 .25:1 .6:.7 1:.04] color=marigold ink=glow segs=12 rings=8 jointlathe flameC on=ash at=(0, .14, 0) h=.25*F r=.1 prof=[0:.55 .25:1 .6:.7 1:.04] color=lemon ink=glow segs=10 rings=7 jointlathe tongue x4 on=ash ring=15 at=(.15, .09, 0) roll=-22 h=.3*F r=.075 prof=[0:.55 .3:1 .65:.65 1:.04] color=sel(i, tomato, tangerine, marigold, tomato) ink=glow segs=10 rings=6 joint// tripod: three legs meeting at a brass knot, a hook, the hanging potrod leg x3 on=ash ring0=90 ring at=(.9, 0, 0) to=(-.9, 1.25, 0) r=.03 sides=8 color=walnutball knot on=ash at=(0, 1.25, 0) r=.07 color=brass segs=10 rings=6rod hook on=ash at=(0, 1.25, 0) to=(0, -.29, 0) r=.02 sides=6 color=iron jointlathe pot on=hook at=end+(0, -.44, 0) h=.24 r=.19 prof=[0:.72 .12:.95 .6:1 .92:.96 1:.9] bands=[.86:silver] color=potC segs=20 rings=10 jointcyl soup on=pot at=top+(0, -.02, 0) h=.035 r=.14 color=honey segs=16 jointtube handle on=pot at=top pts=[-.16,-.03,0 -.14,.1,0 0,.19,0 .14,.1,0 .16,-.03,0] r=.02 smooth sides=6 detail=.7 color=ironrod spoon on=pot at=top+(0, -.1, 0) to=(.17, .34, .1) r=.02 sides=6 color=oak jointball spoonTip on=spoon at=end r=.035 color=oak segs=8 rings=5// smoke and sparks risefx smoke on=ash at=(-.28, .6, -.1) speed=.5 n=7 hz=.3fx sparkle on=ash at=(.12, .3, .27) speed=.7 gravity=-.2 spread=.12 n=8 hz=.7 size=.03 color=sunflower color2=tangerine// idle lifeanim flameA s sin amp=.07 hz=1.7anim flameB s sin amp=.09 hz=2.3 phase=.3anim flameC s sin amp=.1 hz=3.1 phase=.6anim tongue rz sin amp=9 hz=2.2 stagger=.25anim tongue s sin amp=.12 hz=2.7 stagger=.3anim ember s sin amp=.15 hz=.8 stagger=.2anim hook rz sin amp=1.5 hz=.4// statesanim stoke: flameA s keys=[0:0 .3:.45 .7:.3 1:0] hz=.7anim stoke: flameB s keys=[0:0 .3:.5 .7:.35 1:0] hz=.7anim stoke: flameC s keys=[0:0 .3:.55 .7:.4 1:0] hz=.7anim stoke: tongue s keys=[0:0 .3:.5 .7:.3 1:0] hz=.7 stagger=.1anim boil: pot py bounce amp=.012 hz=5anim boil: pot rz sin amp=2 hz=6anim boil: soup s sin amp=.05 hz=5anim stir: spoon ry sin amp=35 hz=1.2
Clean: no issues on this seed.
Loading
seed
Shapes— / 100
Triangles— / 8,000
Draw calls— / 4