Playground
From petalpuff · 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
asset petalpuff "Petalpuff" complexity=4// a round bloom blob: a plump flower-heart body with a big face, a double ruff of petals fanned// behind it like a sunflower, stubby legs on leaf feet, leaf hands and a sprout on top.// Three colourways: sunny cream/coral, lemon/sky, and a rare shiny white/grape with teal leaves.// States: idle (petals sway, body breathes) and spin (a hopping twirl with sparkles).let S = .92..1.08let cwRoll = 0..1let cw = min(2, floor(cwRoll*2.2))let bodyC = sel(cw, cream, lemon, white)let petalC = sel(cw, coral, sky, grape)let petal2C = sel(cw, peach, aqua, lilac)let leafCol = sel(cw, leafB, leafA, teal)let ruffN = int(9..11)// body: the bloom heart, root boneball body at=(0, .35*S, 0) r=(.22, .21, .2)*S color=bodyC under=bodyC*.92 segs=22 rings=14 joint// the petal ruff: a hidden hub turned to face forward, two rings of petals fanned round itball hub on=body at=(0, 0, -.08*S) rot=(90, 0, 0) r=(.15, .04, .15)*S color=petalC*.85 segs=12 rings=6limb petal x=ruffN on=hub ring ring0=0 at=(.12*S, 0, 0) rot=(0, 0, 90) scale=(.5, 1, 1) len=.14*S r=(.065, .075)*S color=petalC segs=8 jointlimb inner x6 on=hub ring ring0=30 at=(.1*S, .025*S, 0) rot=(0, 0, 90) scale=(.5, 1, 1) len=.1*S r=(.055, .062)*S color=petal2C segs=8 joint// stubby legs on leaf feetlimb leg on=body at=(.09*S, -.17*S, .05*S) mirror len=.12*S r=(.055, .05)*S color=leafCol segs=10 jointball foot on=leg at=end+(0, -.025*S, .04*S) r=(.075, .035, .11)*S color=leafCol segs=10 rings=6// leaf handsball hand on=body surf=(72, -18) lift=-.03*S mirror r=(.04, .085, .03)*S color=leafCol segs=10 rings=6 joint// a sprout on topcyl sprout on=body at=top-(0, .02*S, 0) h=.07*S r=.02*S color=leafCol segs=8ball sprig on=sprout at=(.04*S, .07*S, 0) roll=-55 mirror r=(.055, .022, .032)*S color=leafCol segs=8 rings=5// face: big readable eyesface look on=body eyes=round mouth=smile size=.32 spacing=26 eyeY=10 mouthY=-20 mouthW=.3 blush detail=.6// spin sparklesfx spin: sparkle on=body at=(0, .1*S, 0) spread=.4 n=8// idle: petals sway in a wave, breathing, little hand wavesanim idle: petal rz sin amp=10 hz=.6 stagger=.1anim idle: inner rz sin amp=8 hz=.6 stagger=.15 phase=.3anim idle: body breatheanim idle: hand rz sin amp=12 hz=.5 twin=.5// spin: a hopping twirl, petals flared, arms outanim spin: body ry spin hz=1.2anim spin: body py bounce amp=.05 hz=2.4anim spin: petal rz sin amp=18 hz=2.4 stagger=.1anim spin: inner rz sin amp=14 hz=2.4 stagger=.1anim spin: hand rz keys=[0:0 .3:50 .7:50 1:0] hz=1.2anim spin: leg rx sin amp=15 hz=2.4 twin=.5
Clean: no issues on this seed.
Loading
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4