Icebeak · celworld
seed

Icebeak

icebeak v1Made by APIc4
Open in Playground

v1 cost

$0.161

API, priced from the call usage.

Time
66s
The run, with the maths
All 1 version$0.161

Budget

c4 · 53 lines
Shapes16 / 70
Triangles4,784 / 6,000
Draw calls3 / 4
States
idle · slide
Used in
No scene yet
Made
1asset icebeak "Icebeak" complexity=4
2// a chibi frost penguin: a round egg body with a cream belly dome, a big head with a white chin,
3// a stubby beak, an icicle crest (three spikes, tallest in the middle), a fat scarf ring with
4// two hanging ends, flipper arms and orange paddle feet.
5// colourways: 0 classic (navy/cherry), 1 glacier (cobalt/sunflower), 2 rare shiny (lilac/bubblegum, gold ice)
6// states: idle (side-to-side waddle wobble), slide (tips onto its belly and spins, kicking up snow)
7let S = .8..0.9
8let K = 0:6|1:5|2:1
9let coatC = sel(K, navy, cobalt, lilac)
10let bellyC = sel(K, white, cream, white)
11let scarfC = sel(K, cherry, sunflower, bubblegum)
12let trimC = sel(K, white, white, lemon)
13let crestC = sel(K, sky, aqua, lemon)
14let beakC = sel(K, marigold, tangerine, coral)
15let irisC = sel(K, sky, teal, grape)
16let crestH = .9..1.15
17
18// body: the root bone, an upright egg
19ball body at=(0, .3*S, 0) r=(.22, .24, .2)*S color=coatC segs=20 rings=14 joint
20ball belly on=body surf=(0, -10) upright lift=-.07*S r=(.16, .18, .1)*S color=bellyC segs=14 rings=8
21ball foot on=body at=(.09*S, -.25*S, .08*S) mirror r=(.065, .04, .095)*S color=beakC segs=10 rings=6 joint
22cone tail on=body surf=(180, -38) lift=-.02*S h=.09*S r=.06*S r2=.012*S depth=.5 color=coatC segs=8
23
24// flippers: short, thick, splayed out
25limb flipper on=body at=(.18*S, .1*S, 0) mirror roll=22 len=.2*S r=(.06, .04)*S depth=.45 color=coatC segs=8 joint
26
27// head: big, sunk well into the body, with a pale chin
28ball head on=body at=(0, .31*S, .02*S) r=(.21, .2, .19)*S color=coatC under=bellyC segs=20 rings=14 joint
29cone beak on=head surf=(0, -12) lift=-.02*S h=.1*S r=.05*S r2=.012*S depth=.8 color=beakC segs=10
30face look on=head eyes=round mouth=smile size=.26 spacing=27 eyeY=8 mouthY=-34 mouthW=.3 iris=irisC detail=.8
31
32// icicle crest: three spikes fanning back to front
33cone crest x3 on=head row=(0, 0, .07*S) at=(0, .15*S, -.01*S) tilt=sel(i, -28, -4, 22) h=sel(i, .15, .22, .13)*S*crestH r=sel(i, .045, .055, .04)*S r2=.006*S color=crestC segs=8
34
35// scarf: a fat neck ring with two striped ends hanging down the back
36torus scarf on=body at=(0, .2*S, 0) R=.16*S r=.05*S color=scarfC segs=24 sides=8
37limb scarfEnd on=scarf at=(.06*S, 0, -.16*S) mirror tilt=-12 roll=10 len=.15*S r=(.038, .032)*S depth=.5 bands=[.72:trimC] color=scarfC segs=8
38
39// slide: snow puffs kicked up behind
40fx slide: puff on=body at=(0, -.2*S, -.12*S) dir=(0, .3, -1) speed=.6 spread=25 n=6 hz=.9 size=.04 grow=2 color=white color2=foam
41
42// idle: a waddling wobble, head counter-tilts, flippers paddle in turn
43anim idle: body rz sin amp=7 hz=.9
44anim idle: body breathe
45anim idle: head rz sin amp=5 hz=.9 phase=.5
46anim idle: flipper rz sin amp=10 hz=.9 twin=.5
47anim idle: foot rx sin amp=8 hz=.9 twin=.5
48// slide: tip forward onto the belly, spin round, flippers out, feet kicked back
49anim slide: body rx keys=[0:0 .15:70 .85:70 1:0] hz=.5
50anim slide: body py keys=[0:0 .15:-.07 .85:-.07 1:0] hz=.5
51anim slide: body spin hz=.6
52anim slide: flipper rz keys=[0:0 .15:60 .85:60 1:0] hz=.5
53anim slide: foot rx keys=[0:0 .15:-55 .85:-55 1:0] hz=.5
54