Plush stitcher · celworld

Plush stitcher

plush_stitcher v1Agent-madec4
Open in Playground

v1 cost

$… pending

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

The agent session
All 1 version$0.00

Budget

c4 · 82 lines
Shapes39 / 70
Triangles5,112 / 6,000
Draw calls4 / 4
States
work
Used in
No scene yet
Made
1asset plush_stitcher "Plush stitcher" complexity=4
2// the toy factory's plush machine, front +z toward the belt: a giant friendly sewing machine on a sewing
3// cabinet. A round-cornered body (pillar, long arm with a smiling face, head over the needle), a big cotton
4// spool on top feeding a thread down to the needle, a hand wheel on its side, a tomato pincushion, two drawers
5// and a railed chute (part `chute`, toys leave near (0, .75, .95)). Under the needle sits the plush it is
6// making. One gene, dye, picks the colourway: seeds 1/2/3 = lime (a caterpillar), honey (a teddy), teal (a dino).
7// Idle: the body hums, the needle bobs, the wheel turns, the plush wiggles, the lamp pulses.
8// work (1.6 s): the needle stitches fast, the wheel and spool whirl, fluff puffs, the plush hops and spins
9let dye = 0|1|2
10let bodyC = sel(dye, lime, honey, teal)
11let toyC = sel(dye, lime, honey, teal)*1.08
12let threadC = sel(dye, bubblegum, cherry, sunflower)
13let trimC = cream
14let metalC = silver
15let woodC = birch
16
17// the sewing cabinet: dye panels between cream bands, two drawers with knobs
18box base at=(0, 0, -.1) size=(1.8, .7, 1.4) round=.14 bev=2 bands=[.12:bodyC .78:trimC .85:bodyC] color=trimC
19box drawer x2 at=(0, .3, .6) row=(1.0, 0, 0) size=(.58, .24, .05) round=.03 color=bodyC*1.12
20ball knob on=drawer at=(0, .12, .03) r=(.045, .045, .03) color=threadC segs=8 rings=5
21
22// the sewing bed with its needle plate and a patch of fabric
23box plate at=(0, .69, -.15) size=(1.5, .15, .82) round=.06 color=trimC
24box needleplate on=plate at=(-.58, .15, -.05) size=(.32, .012, .26) round=.004 bev=1 color=metalC
25box fabric on=plate at=(-.52, .158, .02) yaw=-8 size=(.4, .02, .34) round=.008 bev=1 color=threadC*1.15
26
27// the machine: pillar, arm with a face, head over the needle; the arm and head hum
28box pillar at=(.55, .82, -.32) size=(.44, .68, .5) round=.16 bev=2 color=bodyC
29box arm at=(-.02, 1.4, -.32) size=(1.58, .42, .52) round=.2 bev=2 bands=[.12:bodyC] color=trimC joint
30face look on=arm eyes=round mouth=grin spacing=22 eyeY=10 mouthY=-26 mouthW=.3 size=.21 detail=.5
31box head at=(-.58, 1.08, -.32) size=(.42, .5, .5) round=.15 bev=2 color=bodyC joint
32cyl needlebar on=head at=(0, -.08, .12) h=.15 r=.045 color=metalC segs=10 joint
33rod needle on=needlebar to=(0, -.09, 0) r=.02 sides=6 color=metalC
34ball lamp on=head at=(.21, .03, .13) r=.06 color=glow ink=glow segs=10 rings=6 joint
35
36// the big cotton spool on its pin, and the thread down to the needle
37rod spindle at=(.25, 1.8, -.32) to=(0, .34, 0) r=.025 sides=8 color=metalC
38cyl spool on=spindle at=(0, .03, 0) h=.28 r=.15 color=threadC segs=18 joint
39cyl spoolend x2 on=spool at=(0, .125, 0) row=(0, .29, 0) h=.035 r=.2 color=woodC segs=18
40tube thread pts=[.39,1.99,-.3 .15,1.87,-.3 -.4,1.86,-.28 -.7,1.8,-.12 -.74,1.6,-.03 -.72,1.2,-.03 -.62,1.03,-.1] r=.02 smooth sides=6 detail=.5 color=threadC
41
42// the hand wheel on the right side
43wheel handwheel at=(.8, 1.14, -.32) r=.26 w=.09 tyre=trimC hub=bodyC*.85 hubR=.45 detail=.7 joint
44rod grip on=handwheel at=(.05, .17, 0) to=(.09, 0, 0) r=.028 sides=6 color=threadC
45
46// the tomato pincushion with three pins
47ball cushion at=(.62, .84, .02) r=(.13, .1, .13) color=cherry segs=14 rings=8
48ball stalk on=cushion at=(0, .09, 0) r=(.05, .03, .05) color=leafA segs=8 rings=4
49rod pin x3 on=cushion ring ring0=30 at=(.06, .05, 0) to=(.05, .11, 0) r=.02 sides=6 color=metalC
50ball pinhead on=pin at=(.05, .11, 0) r=.035 color=sel(i, sunflower, sky, bubblegum) segs=8 rings=5
51
52// the plush being made, in front of the needle: a caterpillar, a teddy or a dino by colourway
53ball plush at=(-.5, .91, .1) r=(.1, .075, .09) color=toyC segs=14 rings=8 joint
54ball peye on=plush at=(.035, .03, .08) mirror r=.016 color=inkDark segs=6 rings=4
55ball seg x2 on=plush at=(.155, -.01, 0) row=(.11, 0, 0) r=(.068, .065, .07) color=toyC segs=10 rings=6 if=dye==0
56ball ear on=plush at=(.07, .065, -.01) mirror r=.038 color=toyC segs=8 rings=5 if=dye==1
57ball snout on=plush at=(0, -.012, .08) r=(.04, .03, .03) color=cream segs=8 rings=5 if=dye==1
58cone spike x3 on=plush at=(0, .06, -.02) row=(.055, 0, 0) rot=(-20, 0, 0) h=.055 r=.026 color=lime segs=6 if=dye==2
59
60// the chute: a silver slide with threadcolour rails off the cabinet's front edge, on a strut
61box chute at=(0, .64, .82) tilt=12 size=(.5, .05, .44) round=.02 color=metalC
62box rail on=chute at=(.23, .02, 0) mirror size=(.05, .09, .44) round=.02 color=threadC
63rod strut at=(0, .3, .62) to=(0, .32, .3) r=.03 sides=8 color=metalC
64
65// cel FX: cotton fluff puffs while it stitches
66fx work: puff on=needlebar at=(0, -.06, .1) n=4 hz=.8 speed=.5 size=.04
67
68// idle: the body hums, the needle bobs, the wheel turns with it, the plush wiggles, the lamp pulses
69anim arm py sin amp=.003 hz=7
70anim head py sin amp=.003 hz=7
71anim needlebar py sin amp=.025 hz=.7
72anim handwheel rx spin hz=.35
73anim plush rz sin amp=6 hz=.5
74anim lamp s keys=[0:0 .5:.2 1:0] hz=.8
75
76// work (1.6 s): fast stitching while the wheel and spool whirl, then the finished plush hops and spins
77anim work: needlebar py keys=[0:0 .06:-.06 .12:0 .18:-.06 .24:0 .3:-.06 .36:0 .42:-.06 .48:0 .54:-.06 .6:0 .66:-.06 .72:0 1:0] hz=.625 once
78anim work: handwheel rx keys=[0:0 .72:900 1:900] hz=.625 once
79anim work: spool ry keys=[0:0 .72:720 1:720] hz=.625 once
80anim work: plush py keys=[0:0 .74:0 .83:.14 .92:0 .96:.03 1:0] hz=.625 once
81anim work: plush ry keys=[0:0 .74:0 .92:360 1:360] hz=.625 once
82anim work: lamp s keys=[0:0 .1:.4 .72:.4 .8:0 1:0] hz=.625 once
83