asset blue_spruce "Blue spruce" complexity=3
// a tall Colorado blue spruce: a short trunk under six faceted tiers that shrink toward a spire,
// blue-green needles with a frosty underside, a few cones hanging near the top
let H = 6.2..7.6
let RW = H*(.2..0.23)
let needle = #6f9ea3:3|#5d9196:2|pineB|#7aa8a0
let bark = barkB:2|walnut|barkA
let coneC = walnut:2|redwood
cyl trunk h=H*.18 r=.2 r2=.15 round=.03 flare=.4 color=bark segs=10 joint
lathe tier x6 on=trunk at=(0, H*.1, 0) chain=(0, H*.135, 0) scale=.83 h=H*.27 r=RW prof=[0:.72 .14:1 .4:.72 1:.06] linear panels=9 noise=.08 bands=[.14:needle] color=needle*.88 segs=27 rings=7
cone spire on=tier at=end+(0, -H*.05, 0) h=H*.3 r=RW*.2 color=needle segs=9 panels=9 if=parent.i==5
ball pinecone x3 on=tier ring=25 at=(RW*.42, H*.05, 0) r=(.07, .11, .07) color=coneC segs=8 rings=6 if=parent.i==3
anim trunk sway amp=1.2 hz=.25