1asset prize_plush "Moonbear plush" complexity=3
2// the top-shelf prize: a giant stitched moonbear sitting up, a pear-shaped body with a cream tummy
3// patch sewn on with a crescent moon, a big round head with long floppy lop ears, stubby paws, a
4// stitched seam down the middle and a ribbon bow at the neck
5let S = .95..1.1
6let fur = lilac:3|sky:2|mint|pink|peach
7let pale = cream:3|white
8let earTip = pink:2|cobalt|grape|teal
9let bowC = cherry:2|sunflower|cobalt
10let moonC = sunflower:3|lemon
11
12// the body and legs, sitting
13ball body at=(0, .42*S, 0) r=(.36, .4, .32)*S color=fur segs=18 rings=12
14ball tummy on=body surf=(0, -2) upright lift=-.11*S r=(.25, .29, .1)*S color=pale segs=14 rings=8
15slab moon on=tummy at=(0, -.04*S, .085*S) pts=[0,.13 .09,.09 .13,0 .09,-.09 0,-.13 .05,-.06 .06,0 .05,.06] t=.03 round=.01 scale=S*1.6 color=moonC
16ball leg on=body at=(.2*S, -.3*S, .16*S) mirror r=(.13, .12, .2)*S color=fur segs=12 rings=8
17ball sole on=leg surf=(0, -10) decal lift=-.03*S r=(.08, .08, .03)*S color=pale segs=8 rings=5
18ball paw on=body surf=(55, -5) lift=-.08*S mirror r=(.11, .17, .11)*S rot=(0, 0, 15) color=fur segs=12 rings=8
19
20// the head, its face and the lop ears
21ball head on=body at=(0, .5*S, .02*S) r=(.32, .29, .28)*S color=fur segs=18 rings=12
22ball snout on=head surf=(0, -22) upright lift=-.08*S r=(.13, .09, .08)*S color=pale segs=12 rings=8
23ball nose on=snout at=(0, .03*S, .07*S) r=(.04, .03, .025)*S color=plum ink=thin segs=8 rings=5
24face look on=head eyes=round mouth=smile size=.22 spacing=26 eyeY=6 mouthY=-30 mouthW=.26 blush detail=.6
25limb ear on=head at=(.2*S, .2*S, -.02*S) mirror rot=(0, 0, -120) len=.42*S r=(.1, .085)*S depth=.55 bands=[.72:earTip] color=fur segs=12
26
27// a stitched seam over the head
28tube seam2 on=head pts=[0,.25,.13 0,.3,0 0,.25,-.13] r=.012 smooth sides=4 scale=S color=plum
29
30// the bow at the neck
31torus collar on=body at=(0, .3*S, 0) R=.24*S r=.04*S color=bowC segs=20 sides=6
32ball knot on=collar at=(0, 0, .24*S) r=.06*S color=bowC segs=8 rings=5
33ball loop on=knot at=(.1*S, 0, 0) mirror r=(.1, .07, .04)*S roll=-20 color=bowC segs=10 rings=6
34