Lantern moth · celworld
seed

Lantern moth

lantern_moth v1Agent-madec4
Open in Playground

v1 cost

$1.06est.

Agent-made: its share of a Claude Code session, priced as API-equivalent Opus 5.5.

Output share
2.8k
Time share
2m 2s
The agent session
All 1 version$1.06

Budget

c4 · 41 lines
Shapes22 / 70
Triangles3,682 / 6,000
Draw calls3 / 4
States
idle · fly
Used in
Made
1asset lantern_moth "Lantern moth" complexity=4 float
2// a chubby night moth that hangs about the lamps: a fuzzy round thorax with a fluffy collar, a big
3// head with wide open eyes and feathery antennae, a plump glowing abdomen in banded segments, and two
4// pairs of soft wings with eye spots. idle: a slow hover; fly: quick wingbeats and a bobbing dart
5let S = .9..1.1
6let fuzz = cream:3|peach|lilac
7let wingA = lilac:2|sky|peach|mint
8let wingB = grape:2|cobalt|coral|teal
9let spotC = sunflower:2|pink|white
10let glowC = glow:3|lemon|aqua
11
12// the body hovers at lamp height
13ball thorax at=(0, 1.9*S, 0) r=(.15, .14, .16)*S color=fuzz segs=16 rings=10 joint
14puff collar on=thorax at=(0, .02*S, .08*S) r=(.16, .1, .1)*S color=fuzz*1.04 noise=.18 segs=12 rings=6
15ball belly on=thorax at=(0, -.06*S, -.2*S) rot=(-20, 0, 0) r=(.13, .12, .2)*S bands=[.45:glowC .55:fuzz .62:glowC] color=glowC ink=glow segs=14 rings=9 joint
16ball stinger on=belly at=(0, -.04*S, -.18*S) r=.06*S color=glowC ink=glow segs=8 rings=5
17
18// the head and its face
19ball head on=thorax at=(0, .08*S, .17*S) r=(.14, .13, .12)*S color=fuzz segs=16 rings=10
20face look on=head eyes=round mouth=smile size=.32 spacing=34 eyeY=10 mouthY=-30 mouthW=.24 detail=.6
21tube antenna on=head at=(.05*S, .1*S, .03*S) mirror pts=[0,0,0 .04,.1,.03 .1,.18,.02 .17,.21,-.02] r=(.02, .016) smooth sides=4 scale=S color=wingB
22puff plume on=antenna at=(.17*S, .21*S, -.02*S) mirror r=(.05, .04, .03)*S color=wingB noise=.15 segs=8 rings=5
23
24// the wings: a big forewing and a small hindwing each side, an eye spot on each
25slab wing on=thorax at=(.08*S, .05*S, .02*S) mirror rot=(-80, 0, 0) pts=[0,.04 .22,.22 .46,.24 .58,.1 .5,-.08 .26,-.12 0,-.04] t=.025 round=.01 scale=S color=wingA edge=wingB joint
26ball spot on=wing at=(.36*S, .08*S, .02*S) r=(.06, .06, .02)*S color=spotC segs=8 rings=5
27slab hind on=thorax at=(.07*S, .02*S, -.08*S) mirror rot=(-80, -18, 0) pts=[0,.02 .16,.05 .32,-.04 .28,-.18 .12,-.18 0,-.06] t=.022 round=.01 scale=S color=wingB edge=wingA joint
28
29// tiny legs tucked under
30limb leg x2 on=thorax at=(.06*S, -.1*S, .04*S) row=(0, 0, -.08*S) mirror roll=20 len=.1*S r=(.022, .018) color=wingB segs=6
31
32// idle: a lazy hover, slow wings, the lantern breathing
33anim idle: wing rz sin amp=22 hz=1.4
34anim idle: hind rz sin amp=18 hz=1.4 phase=.08
35anim idle: thorax py sin amp=.06 hz=.5
36anim idle: belly s sin amp=.06 hz=.7
37// fly: quick wingbeats, a bobbing dart
38anim fly: wing rz sin amp=40 hz=4.5
39anim fly: hind rz sin amp=34 hz=4.5 phase=.08
40anim fly: thorax py sin amp=.1 hz=1.6
41anim fly: thorax rx sin amp=6 hz=1.6 phase=.25
42