Playground
From firework_launcher · 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
asset firework_launcher "Firework crate" complexity=3// a wooden crate of firework tubes: six striped tubes, slightly splayed, with cone caps and a coiled// fuse. launch: the tubes kick, a streak of sparks shoots up and bursts into a ring of stars high abovelet crateC = oak:2|honey|redwoodlet band = walnut:2|redwoodlet tubeA = cherry:2|cobalt|grapelet tubeB = cream:3|whitelet burstA = pink|aqua|lime|sunflowerlet burstB = white|lemon|peach// the crate: a box with corner straps and a stencilled starbox crate size=(1.0, .5, .75) round=.05 bands=[.15:crateC .2:band .8:crateC .85:band] color=crateCbox strap on=crate at=(.44, 0, 0) mirror size=(.08, .52, .78) round=.02 color=bandslab star on=crate at=(0, .25, .375) pts=[0,.17 .05,.06 .16,.05 .07,-.02 .11,-.14 0,-.07 -.11,-.14 -.07,-.02 -.16,.05 -.05,.06] t=.03 round=.01 color=sunflower// six tubes in two rows, splayed a little, each a bone so they kick on launchcyl tube x3 on=crate at=(0, .3, .17) row=(.28, 0, 0) rot=(-8, 0, 0) h=.62 r=.09 stripes=[tubeA tubeB] panels=4 color=tubeA segs=10 jointcyl tube2 x3 on=crate at=(0, .3, -.17) row=(.28, 0, 0) rot=(8, 0, 0) h=.72 r=.09 stripes=[tubeB tubeA] panels=4 color=tubeB segs=10 jointcone tip on=tube at=end h=.16 r=.1 color=tubeB segs=10cone tip2 on=tube2 at=end h=.16 r=.1 color=tubeA segs=10tube fuse on=crate pts=[.5,.24,.1 .6,.18,.2 .68,.12,.12 .66,.09,-.02] r=.022 smooth sides=4 color=band// the show: a streak of sparks up from the middle tube, a burst of stars abovefx launch: jet on=tube2 at=end dir=(0, 1, 0) speed=13 spread=4 hz=1.1 n=14 size=.07 grow=.3 color=sunflower color2=tangerine ink=glowfx launch: sparkle on=crate at=(0, 8.6, 0) n=34 spread=2.3 size=.17 hz=.8 color=burstA color2=burstB ink=glowanim launch: tube py keys=[0:0 .1:-.05 .3:0 1:0] hz=1.2anim launch: tube2 py keys=[0:0 .15:-.06 .35:0 1:0] hz=1.2
Clean: no issues on this seed.
Loading
seed
Shapes— / 45
Triangles— / 4,500
Draw calls— / 3