1asset spiral_slide "Spiral slide" complexity=6
2// the atrium's spiral tube slide: a fat striped pole carries a round deck 3.6 m up (level with the
3// first-floor bridge, entered from -Z), and a chunky tube chute spirals one and a half turns round the
4// pole down to a run-out and a landing cushion at +Z; three posts prop the chute, a pennant and a
5// sun ball top the pole
6let poleC = cobalt:2|teal|grape
7let chuteC = sunflower:2|tangerine:2|cherry|lime
8let deckC = white:2|cream
9let cushC = cherry|pink|mint|sky
10
11// the pole, the deck and its rail
12cyl pole h=4.35 r=.14 bands=[.2:poleC*1.15 .4:poleC .6:poleC*1.15 .8:poleC] color=poleC segs=16
13cyl foot on=pole h=.08 r=.42 round=.03 color=poleC*.8 segs=24
14cyl deck on=pole at=(0, 3.45, 0) h=.15 r=.78 round=.04 color=deckC segs=32
15cyl rim on=deck at=(0, -.12, 0) h=.12 r=.7 r2=.78 color=poleC segs=32
16torus rail on=deck at=(0, .7, 0) R=.74 r=.045 arc=250 color=poleC segs=36 sides=8
17rod rpost x5 on=deck ring ring0=72 at=(.74, .15, 0) to=(0, .56, 0) r=.035 sides=8 color=poleC
18box lip on=deck at=(0, .0, -.78) size=(.6, .13, .3) round=.05 color=chuteC
19
20// the chute: one and a half turns down, then a run-out toward +x
21tube chute pts=[0,3.5,-.78 0,3.36,-1.05 -.53,3.19,-.91 -.91,3.03,-.53 -1.05,2.86,0 -.91,2.69,.53 -.53,2.53,.91 0,2.36,1.05 .53,2.19,.91 .91,2.03,.52 1.05,1.86,0 .91,1.69,-.52 .52,1.53,-.91 0,1.36,-1.05 -.52,1.19,-.91 -.91,1.03,-.52 -1.05,.86,0 -.91,.69,.52 -.52,.53,.91 0,.38,1.05 .45,.33,1.05 .9,.32,1.05] r=.28 smooth sides=12 color=chuteC
22torus mouth at=(.95, .32, 1.05) rot=(0, 0, 90) R=.28 r=.05 color=chuteC*.85 segs=20 sides=8
23
24// posts under the chute and a landing cushion
25rod prop1 at=(-1.05, 0, 0) to=(0, 2.6, 0) r=.06 sides=8 color=poleC
26rod prop2 at=(1.05, 0, 0) to=(0, 1.6, 0) r=.06 sides=8 color=poleC
27rod prop3 at=(0, 0, -1.05) to=(0, 1.1, 0) r=.06 sides=8 color=poleC
28box cushion at=(1.55, 0, 1.05) size=(.9, .16, 1.0) round=.07 bev=3 bands=[.5:cushC*1.12] color=cushC
29
30// the top: a sun ball and a pennant
31ball sunball on=pole at=(0, 4.42, 0) r=.16 color=sunflower segs=16 rings=10
32slab pennant on=pole at=(0, 4.0, 0) pts=[0,0 .5,.1 0,.26] t=.03 round=.012 color=cherry joint
33
34anim pennant ry sin amp=14 hz=.6
35