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