Pond frog · celworld
seed

Pond frog

pond_frog v1Made by APIc4
Open in Playground

v1 cost

$0.091

API, priced from the call usage.

The run, with the maths
All 1 version$0.091

Budget

c4 · 39 lines
Shapes24 / 70
Triangles5,282 / 6,000
Draw calls2 / 4
States
croak · hop
Used in
No scene yet
Made
1asset pond_frog "Pond frog" complexity=4
2// a round chibi frog: fat body, wide head with big bulging eyes, folded hind legs,
3// a throat sac that puffs when it croaks, and a hop state
4let S = .9..1.1
5let skinC = lime:3|leafB:2|mint|moss
6let belly = cream:2|white|peach
7let spot = moss:2|pineA|leafDark
8let pop = tangerine:2|cherry|marigold
9
10// body (raised so the feet, not the belly, reach the ground)
11ball body at=(0, .26*S, 0) r=(.24, .2, .26)*S color=skinC under=belly segs=24 rings=14 joint
12ball spots x3 on=body ring=60 surf=(0, 55) upright lift=-.03*S r=(.05, .02, .05)*S color=spot segs=8 rings=5
13
14// head
15ball head on=body at=(0, .1*S, .17*S) r=(.22, .15, .17)*S color=skinC under=belly segs=24 rings=14 joint
16ball throat on=head at=(0, -.07*S, .08*S) r=(.09, .07, .08)*S color=pop segs=14 rings=8 joint
17ball eye on=head at=(.11*S, .12*S, .03*S) mirror r=.075*S color=skinC segs=12 rings=8
18face look on=eye eyes=round mouth=none size=.5 spacing=4 eyeY=6 detail=.5
19face mouthf on=head eyes=none mouth=smile mouthY=-16 mouthW=.7 detail=.6
20ball nostril on=head surf=(10, 30) lift=-.01*S r=.015*S color=spot segs=6 rings=4
21ball cheek on=head surf=(55, -5) mirror lift=-.02*S r=(.04, .035, .02)*S color=pop segs=8 rings=5
22
23// legs: big folded hind legs, small front arms
24limb thigh on=body at=(.2*S, .02*S, -.1*S) mirror len=.17*S r=(.09, .06)*S rot=(-60, 0, -25) color=skinC segs=12 joint
25limb shin on=thigh at=(0, -.16*S, 0) len=.15*S r=(.05, .04)*S rot=(110, 0, 0) color=skinC segs=10
26ball foot on=shin at=(0, -.16*S, .05*S) r=(.06, .025, .09)*S color=pop segs=10 rings=6
27limb arm on=body at=(.16*S, .02*S, .17*S) mirror len=.24*S r=(.04, .035)*S rot=(-10, 0, -10) color=skinC segs=10 joint
28ball hand on=arm at=(0, -.24*S, .02*S) r=(.045, .02, .06)*S color=pop segs=8 rings=5
29
30// idle: breathe, throat pulse, eye sway; croak and hop states
31anim body breathe amp=.04 hz=.5
32anim throat s sin amp=.1 hz=.8
33anim head nod amp=3 hz=.3
34anim croak: throat s keys=[0:0 .3:.9 .5:.5 .7:1 1:0] hz=1.5
35anim croak: head rx keys=[0:0 .3:-10 .7:-10 1:0] hz=1.5
36anim hop: body py bounce amp=.18 hz=1.4
37anim hop: body rx keys=[0:0 .3:-12 .7:10 1:0] hz=1.4
38anim hop: thigh rx keys=[0:0 .3:40 .6:-30 1:0] hz=1.4
39anim hop: arm rx keys=[0:0 .3:-30 .7:25 1:0] hz=1.4
40