Playground
From voltworm · 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
asset voltworm "Voltworm" complexity=4// a chibi spark caterpillar: a big round head with huge eyes and two glowing electrode antennae,// a chain of five shrinking body segments each wrapped in a dark battery band with a spark nub on top,// stubby bead feet, and a brass "+" terminal for a tail tip.// idle: a slither ripple runs down the segments; charge: segments pulse, head rears, antennae sparklelet S = .85..1.05let shiny = chance(.08)let alt = chance(.5)let cw = shiny*2 + (1-shiny)*alt// colourway 0: sunny cell, 1: lime cell, 2 (rare shiny): bubblegum celllet bodyC = sel(cw, sunflower, lime, bubblegum)let bandC = sel(cw, navy, navy, plum)let trimC = sel(cw, cream, cream, white)let popC = sel(cw, cherry, tangerine, aqua)// front segment: the root bone, belly underside, a collar bandball core at=(0, .16*S, 0) r=(.16, .16, .17)*S color=bodyC under=trimC segs=16 rings=10 jointtorus collar on=core at=(0, 0, -.02*S) rot=(90, 0, 0) R=.155*S r=.03*S color=bandC segs=18 sides=6ball cfoot on=core at=(.1*S, -.125*S, .04*S) mirror r=.05*S color=trimC segs=6 rings=4// the body chain: five segments that shrink toward the tail, sitting on the groundball seg x5 on=core at=(0, -.016*S, -.21*S) chain=(0, -.016*S, -.21*S) scale=.88 r=.15*S color=bodyC under=trimC segs=12 rings=8 jointtorus band on=seg rot=(90, 0, 0) R=.145*S r=.03*S color=bandC segs=14 sides=5ball foot on=seg at=(.09*S, -.11*S, 0) mirror r=.05*S color=trimC segs=6 rings=4cone spark on=seg surf=(0, 90) lift=-.02*S h=.08*S r=.045*S color=popC segs=6cyl term on=seg if=parent.i==4 at=(0, 0, -.13*S) rot=(-90, 0, 0) h=.07*S r=.05*S round=.015*S color=brass segs=10// the big headball head on=core at=(0, .2*S, .1*S) r=(.2, .19, .18)*S color=bodyC under=trimC segs=22 rings=14 jointface look on=head eyes=round mouth=smile size=.27 spacing=27 eyeY=6 mouthY=-26 mouthW=.3 iris=bandC detail=.6// electrode antennae with glowing tipsrod antenna on=head at=(.07*S, .15*S, .02*S) mirror to=(.07, .19, .03)*S r=(.022, .018)*S sides=6 color=bandC jointball tip on=antenna at=end r=.045*S color=glow ink=glow segs=8 rings=6// charge sparks at the antenna tipsfx charge: sparkle on=tip n=6 spread=.12 hz=1.4 size=.03 color=sunflower color2=white// idle: a slither ripple down the chain, a gentle nod and antenna swayanim idle: seg ry sin amp=9 hz=.7 stagger=.14anim idle: core breatheanim idle: head nod amp=5 hz=.5anim idle: antenna rz sin amp=6 hz=.6 twin=.5// charge: segments pulse in a running wave, the head rears up, antennae quiveranim charge: seg s sin amp=.1 hz=2.5 stagger=.18anim charge: head rx keys=[0:0 .3:-14 .7:-14 1:0] hz=.8anim charge: antenna rz sin amp=12 hz=5 twin=.5anim charge: core py bounce amp=.02 hz=2.5
Clean: no issues on this seed.
Loading
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4