Cloud tree · celworld
seed

Cloud tree

tree_cloud v1Hand-writtenc2
Open in PlaygroundExplain this script

How v1 was made

Hand-written

Written by hand in .cel.

Script
14 lines

Budget

c2 · 14 lines
Shapes11 / 30
Triangles2,344 / 3,200
Draw calls1 / 2
States
None: it rests
Used in
No scene yet
Made
1asset tree_cloud "Cloud tree" ref=nature:tree:cloud complexity=2
2// tree@0's cloud form: a flared trunk forks into 2-3 boughs, each tipped with a puff,
3// a bigger puff crowns the fork, and smaller puffs bud off the bough puffs
4let H = 3.6..5.6
5let TH = H * (.38..0.46)
6let R0 = .2..0.3
7let bark = barkA:2|barkB|barkC
8let fol = leafA:3|leafB:2|leafC:2|leafD
9
10lathe trunk h=TH r=R0 prof=[0:1 1:.7] linear flare=.25..0.45 lean=(-.06..0.06, -.06..0.06)*TH color=bark~ segs=10 rings=8
11rod bough x2..3 on=trunk at=end+(0, -.04*TH, 0) ring=35 to=(.8..1.4, 1, 0)*(H*.22) r=(R0*.52, R0*.31) sides=8 color=trunk.color
12puff crown on=bough at=tip+(H*.04, H*.03, 0) r=(1, .85..0.95, .92..1)*H*(.17..0.23) color=fol*(.98..1.02) noise=.05..0.08
13puff top on=trunk at=end+(0, H*.24, 0) r=(1, .85..0.95, .92..1)*H*(.2..0.26) color=fol*(.98..1.02) noise=.05..0.08
14puff bud x0..2 on=crown ring=50 surf=(0, -10..80) upright lift=-H*.06 r=(1, .9, .96)*H*(.13..0.19) color=fol*(.98..1.02) noise=.05..0.08
15