Playground
From sproutlet · 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
asset sproutlet "Sproutlet" complexity=4// a leaf-sprite pocket critter: a round seed body that is also its head, big shiny eyes,// stubby arms, two short legs on fat feet, a stem with a big two-leaf sprout on top.// idle: a gentle sway with blinks and leaves rustling; happy: hops with the leaves flapping.// colourways: garden (common), acorn (common), shiny blossom (rare)let S = .9..1.1let leafS = .9..1.15let pal = "garden":5|"acorn":4|"shiny":.6let K = (pal=="acorn") + 2*(pal=="shiny")let bodyC = sel(K, lime, honey, bubblegum)let bellyC = sel(K, cream, cream, white)let sproutC = sel(K, leafA, leafPaint, sunflower)let rimC = sel(K, leafDark, leafB, tangerine)let stemC = sel(K, stem, oak, coral)let eyeC = sel(K, walnut, bottle, cobalt)let footC = sel(K, bottle, walnut, plum)// seed body: the root bone (head and body in one)ball body at=(0, .3*S, 0) r=(.22, .24, .2)*S color=bodyC segs=24 rings=14 jointball belly on=body surf=(0, -38) upright lift=-.09*S r=(.15, .12, .09)*S color=bellyC segs=14 rings=8ball nub on=body surf=(180, -20) lift=-.03*S r=(.05, .07, .05)*S color=bodyC segs=10 rings=6// legs and fat feet, stubby armslimb leg on=body at=(.095*S, -.17*S, 0) mirror len=.07*S r=(.06, .055)*S color=bodyC segs=10 jointball foot on=leg at=(0, -.085*S, .03*S) r=(.075, .045, .095)*S color=footC segs=12 rings=7limb arm on=body at=(.19*S, -.02*S, .02*S) mirror roll=35 len=.08*S r=(.045, .038)*S color=bodyC segs=10 joint// the sprout: a stem and two big leaves with a darker rimcyl stalk on=body at=top+(0, -.02*S, 0) h=.09*S r=.028*S r2=.022*S round=.008 color=stemC segs=8 jointslab frond on=stalk at=top+(.005*S, -.01*S, 0) mirror roll=28 scale=leafS*S pts=[0,0 .06,.07 .16,.1 .26,.08 .33,.02 .27,-.03 .15,-.045 .05,-.03] t=.03 round=.012 edge=rimC color=sproutC jointslab bud on=stalk at=top+(0, -.01*S, -.01*S) tilt=-15 scale=S pts=[-.03,0 .03,0 .02,.06 0,.09 -.02,.06] t=.025 round=.01 color=rimC// face: big readable eyes, small smileface look on=body eyes=round mouth=smile size=.24 spacing=26 eyeY=10 mouthY=-12 mouthW=.28 iris=eyeC detail=.7// eyelids hidden in the body, they pop out over the eyes to blinkball lid on=body surf=(26, 10) mirror lift=-.05*S r=(.065, .03, .065)*S color=bodyC segs=10 rings=5 joint// idle: sway, rustle, blinkanim idle: body sway amp=5 hz=.4anim idle: frond rz sin amp=6 hz=.7anim idle: arm rz sin amp=6 hz=.4anim idle: lid py keys=[0:0 .88:0 .93:.055 .98:0 1:0] hz=.3// happy: hop, leaves flapping, arms upanim happy: body py bounce amp=.09 hz=2anim happy: frond flap amp=35 hz=4anim happy: arm rz keys=[0:20 .5:80 1:20] hz=2anim happy: leg rx sin amp=15 hz=2 twin=.5
Clean: no issues on this seed.
Loading
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4