Snail mail van · celworld
seed

Snail mail van

snail_van v2Agent-madec4
Open in PlaygroundExplain this script

How v2 was made

Agent-made

Written by a Claude Code session with the cel command line: check, look, fix, save.

Script
44 lines
Output share
1.3k
Time share
86s
The agent session

Budget

c4 · 44 lines
Shapes27 / 70
Triangles5,356 / 6,000
Draw calls4 / 4
States
deliver
Used in
Made
1asset snail_van "Snail mail van" complexity=4
2// an original delivery van that is half snail: a low rounded body (the foot), a cab with a smile,
3// headlights and a windscreen, eyes on wobbly stalks, a spiral shell for the mail hold with a
4// letter slot and a little flag, and chunky wheels
5let L = 2.8..3.2
6let W = 1.4..1.6
7let WR = .3..0.36
8let body = teal:2|cherry:2|cobalt|sunflower|mint|coral
9let trim = cream:3|white
10let shellC = terracotta:2|peach|honey|oak|lilac
11let swirl = walnut:2|plum|redwood
12
13// the foot and the cab
14box foot at=(0, WR*.45, 0) size=(W, .5, L) round=.2 bands=[.32:body] color=trim joint
15box cab on=foot at=(0, .42, L*.24) size=(W*.94, .85, L*.5) round=.3 color=body
16box screen on=cab at=(0, .46, L*.25-.02) size=(W*.74, .3, .06) round=.06 color=glassDark surface=glass
17box window on=cab at=(W*.47-.02, .46, .06) mirror size=(.06, .28, L*.3) round=.06 color=glassDark surface=glass
18face grin on=cab eyes=none mouth=smile mouthY=-24 mouthW=.55
19ball lamp on=cab at=(W*.3, .26, L*.25) mirror r=(.09, .09, .04) color=glow ink=glow segs=10 rings=6
20box bumper on=foot at=(0, 0, L*.5) size=(W*.86, .14, .14) round=.06 color=silver surface=metal
21box rear on=foot at=(0, 0, -L*.5) size=(W*.86, .14, .14) round=.06 color=silver surface=metal
22
23// eyes on stalks
24rod stalk on=cab at=(.2, .8, .2) mirror to=(.1, .5, .12) r=(.05, .04) sides=8 color=body joint
25ball eye on=stalk at=end r=.11 color=white segs=12 rings=8
26ball pupil on=eye surf=(0, 4) decal lift=-.025 r=(.05, .065, .03) color=inkDark ink=none segs=8 rings=5
27
28// the shell: a fat rounded disc with a raised spiral on each side, a letter slot and a flag
29cyl shell on=foot at=(-W*.4, 1.0, -L*.18) rot=(0, 0, -90) h=W*.8 r=.8 round=.26 cap=shellC color=shellC segs=28
30tube coil on=foot at=(W*.4+.012, 1.0, -L*.18) mirror pts=[0,.42,.21 0,.26,.37 0,.05,.42 0,-.15,.37 0,-.29,.24 0,-.34,.08 0,-.32,-.09 0,-.22,-.21 0,-.09,-.27 0,.05,-.26 0,.15,-.19 0,.19,-.09 0,.19,.01 0,.14,.09 0,.07,.12 0,0,.12 0,-.04,.08] r=(.055, .035) smooth sides=6 detail=.5 color=swirl
31box slot on=shell surf=(215, 0) decal at=(0, -.21, 0) lift=-.03 size=(.1, .42, .07) round=.03 color=inkDark
32slab letter on=slot at=(0, .21, .03) rot=(0, -90, 0) pts=[0,-.15 .2,-.15 .2,.15 0,.15] t=.015 color=white edge=cherry|cobalt
33rod flagpole on=foot at=(W*.44, .45, -L*.18-.5) to=(0, .9, 0) r=.022 sides=6 color=silver joint surface=metal
34box flag on=flagpole at=(0, .64, -.17) rot=(0, 90, 0) size=(.34, .2, .03) round=.012 color=cherry surface=fabric
35
36// wheels
37wheel wheel x2 on=foot row=(0, 0, L*.62) at=(W*.47, WR*.55, 0) mirror r=WR w=.24 hub=trim
38
39anim stalk rz sin amp=7 hz=.6 twin=.5
40anim stalk rx sin amp=5 hz=.4 phase=.2
41anim foot py bounce amp=.015 hz=1.1
42// deliver: a state a game triggers; the flag swings down, the eyes glance back
43anim deliver: flagpole rx keys=[0:0 .6:88 .8:80 1:84] hz=1.2 once
44anim deliver: stalk rx keys=[0:0 .3:-22 .7:-22 1:0] hz=.8 once
45