Playground
From glowfin · 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
asset glowfin "Glowfin" complexity=4 float// a chibi lantern-fish floater: a fat round body with big eyes, a dark back band and a pale belly,// fan fins on both sides, a fan tail and a dorsal sail, glowing photophore dots along the flanks,// and a curled stalk carrying a glowing bulb lure out in front of its face.// colourways: deep sea (cobalt), reef (coral), and a rare shiny (lilac with a mint lure)let S = .92..1.08let roll = 0..1let k = min(floor(roll*2.2), 2)let bodyC = sel(k, cobalt, coral, lilac)let backC = sel(k, navy, cherry, grape)let bellyC = sel(k, cream, peach, white)let finC = sel(k, aqua, sunflower, bubblegum)let rimC = sel(k, sky, marigold, pink)let lureC = sel(k, glow, glow, mint)let spotC = sel(k, lemon, lemon, aqua)// body: the root bone, floatingball body at=(0, .42*S, 0) r=(.22, .2, .24)*S color=bodyC under=bellyC bands=[.78:backC] segs=24 rings=16 jointface look on=body eyes=round mouth=smile size=.27 spacing=28 eyeY=8 mouthY=-24 mouthW=.3 detail=.7torus gill on=body surf=(58, -2) mirror lift=-.008*S R=.08*S r=.014*S arc=120 color=backC segs=10 sides=5// fins: fan pectorals, a fan tail, a dorsal sail, little belly finsslab fin on=body at=(.19, -.03, .02)*S mirror yaw=40 roll=-10 pts=[0,-.03 .13,.11 .19,.05 .2,-.02 .17,-.09 0,.03] t=.035*S round=.015*S scale=S color=finC edge=rimC jointball tailbase on=body at=(0, 0, -.21)*S r=(.07, .09, .09)*S color=bodyC segs=12 rings=8 jointslab tail on=tailbase at=(0, 0, -.04*S) yaw=90 pts=[0,-.05 0,.05 .16,.16 .21,.07 .17,0 .21,-.07 .16,-.16] t=.035*S round=.015*S scale=S color=finC edge=rimCslab dorsal on=body at=(0, .16, -.02)*S yaw=90 pts=[-.06,0 .13,0 .15,.06 .06,.13 -.03,.1] t=.03*S round=.013*S scale=S color=finC edge=rimCslab pelvic on=body at=(.09, -.16, .02)*S mirror yaw=60 roll=-30 pts=[0,0 .1,-.05 .11,-.1 .02,-.04] t=.028*S round=.012*S scale=S color=finC// the lure: a curled stalk and a glowing bulbtube stalk on=body at=(0, .17, .05)*S pts=[0,0,0 0,.12,.02 0,.2,.1 0,.19,.2] r=(.026, .018)*S smooth sides=8 detail=.7 color=backC jointcone collar on=stalk at=end+(0, .02*S, 0) rot=(180, 0, 0) h=.05*S r=.04*S r2=.016*S color=finC segs=10ball lure on=stalk at=end+(0, -.06*S, 0) r=.072*S color=lureC ink=glow segs=16 rings=12 joint// photophores: glowing dots along each flankball spot x3 on=body surf=(75+i*28, -18) mirror lift=-.012*S r=.026*S color=spotC ink=glow segs=8 rings=5// glow state: sparkles round the bulbfx glow: sparkle on=lure n=8 spread=.16 size=.025// idle: float and flutteranim idle: body bob amp=.04 hz=.6anim idle: fin flap amp=30 hz=3anim idle: tailbase wag amp=22 hz=1.4anim idle: stalk sway amp=6 hz=.5// glow: the bulb pulses, the stalk dips to show it offanim glow: lure s sin amp=.25 hz=1.2anim glow: stalk rx keys=[0:0 .5:12 1:0] hz=.6anim glow: fin flap amp=18 hz=2anim glow: body bob amp=.025 hz=.6
Clean: no issues on this seed.
Loading
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4