1asset wooden_dock "Lake dock" complexity=4
2// a lake dock on posts: a plank deck reaching out over the water, stout posts with caps standing
3// proud of the deck, cross beams below, a ladder down at the far end, a lantern post, a life ring
4// on a post, a coil of rope and a tackle box
5let L = 5.6..6.4
6let W = 1.8..2
7let plankA = oak:3|honey|driftwood
8let plankB = plankA*.88
9let postC = walnut:2|barkB|redwood
10let ringC = cherry:3|tangerine
11let boxC = bottle:2|cobalt|teal
12
13// the deck on its beams and posts
14box deck at=(0, .52, L*.5-.4) size=(W, .14, L) round=.04 stripes=[plankA plankB] panels=16 axis=z color=plankA
15box beam x4 row=(0, 0, L/3.4) at=(0, .38, L*.5-.4) size=(W+.2, .16, .2) round=.04 color=postC
16cyl post x4 row=(0, 0, L/3.4) at=(W*.5+.04, 0, L*.5-.4) mirror h=.92 r=.12 round=.03 color=postC cap=honey segs=12
17
18// the ladder at the far end
19rod rail x2 row=(.5, 0, 0) at=(0, .7, L-.32) to=(0, -.7, .12) r=.045 sides=8 color=postC*1.1
20box rung x3 row=(0, .2, .034) at=(0, .3, L-.27) size=(.56, .06, .08) round=.02 color=plankA
21
22// the lantern post, the life ring, the rope and the tackle box
23cyl lampPost at=(-W*.5+.04, .5, L-.6) h=1.5 r=.07 color=postC segs=10
24box lampHood on=lampPost at=end size=(.3, .08, .3) round=.03 color=iron
25box lantern on=lampPost at=end+(0, -.34, 0) size=(.24, .26, .24) round=.05 color=glow ink=glow
26torus lifeRing at=(W*.5+.17, .84, L*.5-.4+L/6.8) rot=(0, 90, 90) R=.24 r=.07 color=ringC segs=20 sides=8
27torus coil at=(-.35, .66, .5) R=.18 r=.05 color=burlap segs=16 sides=8
28torus coil2 on=coil at=(0, .07, 0) R=.15 r=.05 color=burlap segs=16 sides=8
29box tackle at=(.38, .59, L*.5) size=(.42, .26, .28) round=.05 bands=[.7:boxC*.8] color=boxC
30