@casmo/tree.js 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/README.md +106 -16
  2. package/dist/apply-CcodnAbs.js +250 -0
  3. package/dist/apply-CcodnAbs.js.map +1 -0
  4. package/dist/bake/index.d.ts +2 -2
  5. package/dist/bake/index.d.ts.map +1 -1
  6. package/dist/definition/crown-shape.d.ts +9 -0
  7. package/dist/definition/crown-shape.d.ts.map +1 -0
  8. package/dist/definition/defaults.d.ts +7 -1
  9. package/dist/definition/defaults.d.ts.map +1 -1
  10. package/dist/definition/index.d.ts +4 -3
  11. package/dist/definition/index.d.ts.map +1 -1
  12. package/dist/definition/migrations.d.ts +0 -8
  13. package/dist/definition/migrations.d.ts.map +1 -1
  14. package/dist/definition/schema.d.ts.map +1 -1
  15. package/dist/definition/types.d.ts +95 -6
  16. package/dist/definition/types.d.ts.map +1 -1
  17. package/dist/effects/mask.d.ts +3 -3
  18. package/dist/effects/mask.d.ts.map +1 -1
  19. package/dist/effects.js +3 -3
  20. package/dist/effects.js.map +1 -1
  21. package/dist/forest/Forest.d.ts +10 -1
  22. package/dist/forest/Forest.d.ts.map +1 -1
  23. package/dist/forest/nodes.d.ts +4 -1
  24. package/dist/forest/nodes.d.ts.map +1 -1
  25. package/dist/{forest-OX9WvAwh.js → forest-DTrD8puH.js} +695 -546
  26. package/dist/forest-DTrD8puH.js.map +1 -0
  27. package/dist/generator/branches.d.ts +2 -2
  28. package/dist/generator/branches.d.ts.map +1 -1
  29. package/dist/generator/fruit.d.ts +28 -0
  30. package/dist/generator/fruit.d.ts.map +1 -0
  31. package/dist/generator/growth.d.ts +1 -1
  32. package/dist/generator/growth.d.ts.map +1 -1
  33. package/dist/generator/index.d.ts +4 -4
  34. package/dist/generator/index.d.ts.map +1 -1
  35. package/dist/generator/leaf-shapes.d.ts +33 -1
  36. package/dist/generator/leaf-shapes.d.ts.map +1 -1
  37. package/dist/generator/trunk.d.ts +8 -2
  38. package/dist/generator/trunk.d.ts.map +1 -1
  39. package/dist/generator/types.d.ts +34 -5
  40. package/dist/generator/types.d.ts.map +1 -1
  41. package/dist/index.d.ts +4 -2
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +48 -4
  44. package/dist/index.js.map +1 -1
  45. package/dist/materials/index.d.ts +6 -0
  46. package/dist/materials/index.d.ts.map +1 -1
  47. package/dist/names-C6-wuJ29.js +589 -0
  48. package/dist/names-C6-wuJ29.js.map +1 -0
  49. package/dist/react/Tree.d.ts +5 -2
  50. package/dist/react/Tree.d.ts.map +1 -1
  51. package/dist/react.js +10 -6
  52. package/dist/react.js.map +1 -1
  53. package/dist/season/nodes.d.ts +16 -0
  54. package/dist/season/nodes.d.ts.map +1 -1
  55. package/dist/season/profile.d.ts +26 -0
  56. package/dist/season/profile.d.ts.map +1 -1
  57. package/dist/species/almond.js +213 -0
  58. package/dist/species/almond.js.map +1 -0
  59. package/dist/species/almond.json +201 -0
  60. package/dist/species/apple.js +220 -0
  61. package/dist/species/apple.js.map +1 -0
  62. package/dist/species/apple.json +211 -0
  63. package/dist/species/ash.js +177 -0
  64. package/dist/species/ash.js.map +1 -0
  65. package/dist/species/ash.json +168 -0
  66. package/dist/species/beech.js +164 -0
  67. package/dist/species/beech.js.map +1 -0
  68. package/dist/species/beech.json +158 -0
  69. package/dist/species/birch.js +160 -0
  70. package/dist/species/birch.js.map +1 -0
  71. package/dist/species/birch.json +154 -0
  72. package/dist/species/catalog.d.ts +61 -0
  73. package/dist/species/catalog.d.ts.map +1 -0
  74. package/dist/species/cedar.js +159 -0
  75. package/dist/species/cedar.js.map +1 -0
  76. package/dist/species/cedar.json +159 -0
  77. package/dist/species/cherry.js +227 -0
  78. package/dist/species/cherry.js.map +1 -0
  79. package/dist/species/cherry.json +215 -0
  80. package/dist/species/chestnut.js +220 -0
  81. package/dist/species/chestnut.js.map +1 -0
  82. package/dist/species/chestnut.json +211 -0
  83. package/dist/species/douglas-fir.js +164 -0
  84. package/dist/species/douglas-fir.js.map +1 -0
  85. package/dist/species/douglas-fir.json +161 -0
  86. package/dist/species/elm.js +163 -0
  87. package/dist/species/elm.js.map +1 -0
  88. package/dist/species/elm.json +154 -0
  89. package/dist/species/hemlock.js +165 -0
  90. package/dist/species/hemlock.js.map +1 -0
  91. package/dist/species/hemlock.json +162 -0
  92. package/dist/species/hickory.js +190 -0
  93. package/dist/species/hickory.js.map +1 -0
  94. package/dist/species/hickory.json +183 -0
  95. package/dist/species/index.d.ts +10 -0
  96. package/dist/species/index.d.ts.map +1 -0
  97. package/dist/species/juniper.js +148 -0
  98. package/dist/species/juniper.js.map +1 -0
  99. package/dist/species/juniper.json +145 -0
  100. package/dist/species/loaders.d.ts +7 -0
  101. package/dist/species/loaders.d.ts.map +1 -0
  102. package/dist/species/mahogany.js +191 -0
  103. package/dist/species/mahogany.js.map +1 -0
  104. package/dist/species/mahogany.json +187 -0
  105. package/dist/species/maple.js +167 -0
  106. package/dist/species/maple.js.map +1 -0
  107. package/dist/species/maple.json +162 -0
  108. package/dist/species/oak.js +210 -0
  109. package/dist/species/oak.js.map +1 -0
  110. package/dist/species/oak.json +203 -0
  111. package/dist/species/olive.js +179 -0
  112. package/dist/species/olive.js.map +1 -0
  113. package/dist/species/olive.json +172 -0
  114. package/dist/species/peach.js +213 -0
  115. package/dist/species/peach.js.map +1 -0
  116. package/dist/species/peach.json +201 -0
  117. package/dist/species/pear.js +203 -0
  118. package/dist/species/pear.js.map +1 -0
  119. package/dist/species/pear.json +191 -0
  120. package/dist/species/pine.js +153 -0
  121. package/dist/species/pine.js.map +1 -0
  122. package/dist/species/pine.json +153 -0
  123. package/dist/species/plum.js +227 -0
  124. package/dist/species/plum.js.map +1 -0
  125. package/dist/species/plum.json +215 -0
  126. package/dist/species/red-oak.js +210 -0
  127. package/dist/species/red-oak.js.map +1 -0
  128. package/dist/species/red-oak.json +203 -0
  129. package/dist/species/redwood.js +164 -0
  130. package/dist/species/redwood.js.map +1 -0
  131. package/dist/species/redwood.json +161 -0
  132. package/dist/species/sequoia.js +157 -0
  133. package/dist/species/sequoia.js.map +1 -0
  134. package/dist/species/sequoia.json +157 -0
  135. package/dist/species/spruce.js +160 -0
  136. package/dist/species/spruce.js.map +1 -0
  137. package/dist/species/spruce.json +157 -0
  138. package/dist/species/teak.js +156 -0
  139. package/dist/species/teak.js.map +1 -0
  140. package/dist/species/teak.json +148 -0
  141. package/dist/species/types.d.ts +61 -0
  142. package/dist/species/types.d.ts.map +1 -0
  143. package/dist/species/walnut.js +210 -0
  144. package/dist/species/walnut.js.map +1 -0
  145. package/dist/species/walnut.json +203 -0
  146. package/dist/species/white-oak.js +203 -0
  147. package/dist/species/white-oak.js.map +1 -0
  148. package/dist/species/white-oak.json +199 -0
  149. package/dist/species.js +160 -0
  150. package/dist/species.js.map +1 -0
  151. package/dist/styles/apply.d.ts +12 -0
  152. package/dist/styles/apply.d.ts.map +1 -0
  153. package/dist/styles/low-poly/index.d.ts +1 -1
  154. package/dist/styles/low-poly/index.d.ts.map +1 -1
  155. package/dist/styles/low-poly.js +9 -8
  156. package/dist/styles/low-poly.js.map +1 -1
  157. package/dist/styles/names.d.ts +28 -0
  158. package/dist/styles/names.d.ts.map +1 -0
  159. package/dist/styles/realistic/index.d.ts +3 -8
  160. package/dist/styles/realistic/index.d.ts.map +1 -1
  161. package/dist/styles/realistic/textures.d.ts +20 -0
  162. package/dist/styles/realistic/textures.d.ts.map +1 -0
  163. package/dist/styles/realistic.js +10 -16
  164. package/dist/styles/realistic.js.map +1 -1
  165. package/dist/styles/registry.d.ts +2 -13
  166. package/dist/styles/registry.d.ts.map +1 -1
  167. package/dist/styles/stylized/index.d.ts +1 -1
  168. package/dist/styles/stylized/index.d.ts.map +1 -1
  169. package/dist/styles/stylized.js +9 -8
  170. package/dist/styles/stylized.js.map +1 -1
  171. package/dist/styles/types.d.ts +16 -2
  172. package/dist/styles/types.d.ts.map +1 -1
  173. package/dist/textures/realistic/bark-fibrous-normal.png +0 -0
  174. package/dist/textures/realistic/bark-fibrous.png +0 -0
  175. package/dist/textures/realistic/bark-papery-normal.png +0 -0
  176. package/dist/textures/realistic/bark-papery.png +0 -0
  177. package/dist/textures/realistic/bark-plated-normal.png +0 -0
  178. package/dist/textures/realistic/bark-plated.png +0 -0
  179. package/dist/textures/realistic/bark-smooth-normal.png +0 -0
  180. package/dist/textures/realistic/bark-smooth.png +0 -0
  181. package/dist/textures/realistic/leaf-compound.png +0 -0
  182. package/dist/textures/realistic/leaf-lobed.png +0 -0
  183. package/dist/textures/realistic/leaf-palmate.png +0 -0
  184. package/dist/textures/realistic/scale.png +0 -0
  185. package/dist/tree/Tree.d.ts +6 -4
  186. package/dist/tree/Tree.d.ts.map +1 -1
  187. package/package.json +9 -2
  188. package/dist/forest-OX9WvAwh.js.map +0 -1
  189. package/dist/types-BZjHhNz7.js +0 -20
  190. package/dist/types-BZjHhNz7.js.map +0 -1
@@ -0,0 +1,177 @@
1
+ // src/species/data/ash.json
2
+ var id = "ash";
3
+ var name = "Ash";
4
+ var form = "broadleaf";
5
+ var trunk = {
6
+ "length": 7,
7
+ "radius": .36,
8
+ "taper": .32,
9
+ "lengthVariation": .1,
10
+ "bend": .1
11
+ };
12
+ var branches = [
13
+ {
14
+ "angleVariation": .15,
15
+ "spiral": 137.5,
16
+ "lengthVariation": .15,
17
+ "taper": .42,
18
+ "bend": .12,
19
+ "gravity": .18,
20
+ "lengthProfile": [
21
+ {
22
+ "t": .48,
23
+ "value": 1
24
+ },
25
+ {
26
+ "t": .75,
27
+ "value": .9
28
+ },
29
+ {
30
+ "t": 1,
31
+ "value": .5
32
+ }
33
+ ],
34
+ "angleProfile": [{
35
+ "t": .48,
36
+ "value": 1.2
37
+ }, {
38
+ "t": 1,
39
+ "value": .7
40
+ }],
41
+ "count": 8,
42
+ "start": .48,
43
+ "end": .96,
44
+ "angle": 42,
45
+ "length": .5,
46
+ "radius": .6
47
+ },
48
+ {
49
+ "angleVariation": .15,
50
+ "spiral": 137.5,
51
+ "lengthVariation": .15,
52
+ "taper": .45,
53
+ "bend": .12,
54
+ "gravity": .2,
55
+ "count": 3,
56
+ "start": .3,
57
+ "end": 1,
58
+ "angle": 38,
59
+ "length": .6,
60
+ "radius": .6
61
+ },
62
+ {
63
+ "angleVariation": .15,
64
+ "spiral": 137.5,
65
+ "lengthVariation": .15,
66
+ "taper": .45,
67
+ "bend": .1,
68
+ "gravity": .15,
69
+ "count": 2,
70
+ "start": .4,
71
+ "end": 1,
72
+ "angle": 35,
73
+ "length": .5,
74
+ "radius": .6
75
+ }
76
+ ];
77
+ var foliage = {
78
+ "type": "compound",
79
+ "density": .4,
80
+ "size": .65,
81
+ "sizeVariation": .25,
82
+ "start": .15,
83
+ "angle": 45
84
+ };
85
+ var bark = {
86
+ "type": "furrowed",
87
+ "color": "#a19d93"
88
+ };
89
+ var season = {
90
+ "leafColor": [
91
+ {
92
+ "t": 0,
93
+ "value": "#a5c45a"
94
+ },
95
+ {
96
+ "t": .2,
97
+ "value": "#5a8a3a"
98
+ },
99
+ {
100
+ "t": .5,
101
+ "value": "#5a8a3a"
102
+ },
103
+ {
104
+ "t": .58,
105
+ "value": "#c7b648"
106
+ },
107
+ {
108
+ "t": .6799999999999999,
109
+ "value": "#9c7a46"
110
+ },
111
+ {
112
+ "t": .97,
113
+ "value": "#9c7a46"
114
+ },
115
+ {
116
+ "t": 1,
117
+ "value": "#a5c45a"
118
+ }
119
+ ],
120
+ "leafCoverage": [
121
+ {
122
+ "t": 0,
123
+ "value": .3
124
+ },
125
+ {
126
+ "t": .1,
127
+ "value": 1
128
+ },
129
+ {
130
+ "t": .58,
131
+ "value": 1
132
+ },
133
+ {
134
+ "t": .7,
135
+ "value": 0
136
+ },
137
+ {
138
+ "t": .96,
139
+ "value": 0
140
+ },
141
+ {
142
+ "t": 1,
143
+ "value": .3
144
+ }
145
+ ],
146
+ "blossom": [{
147
+ "t": 0,
148
+ "value": 0
149
+ }],
150
+ "blossomColor": "#d8d48a"
151
+ };
152
+ var wind = {
153
+ "trunk": .08,
154
+ "branches": .3,
155
+ "leaves": .6,
156
+ "frequency": .9
157
+ };
158
+ var variation = {
159
+ "color": .1,
160
+ "growth": .1,
161
+ "season": .05
162
+ };
163
+ var ash_default = {
164
+ id: "ash",
165
+ name: "Ash",
166
+ form,
167
+ trunk,
168
+ branches,
169
+ foliage,
170
+ bark,
171
+ season,
172
+ wind,
173
+ variation
174
+ };
175
+ export { bark, branches, ash_default as default, foliage, form, id, name, season, trunk, variation, wind };
176
+
177
+ //# sourceMappingURL=ash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ash.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,168 @@
1
+ {
2
+ "id": "ash",
3
+ "name": "Ash",
4
+ "form": "broadleaf",
5
+ "trunk": {
6
+ "length": 7,
7
+ "radius": 0.36,
8
+ "taper": 0.32,
9
+ "lengthVariation": 0.1,
10
+ "bend": 0.1
11
+ },
12
+ "branches": [
13
+ {
14
+ "angleVariation": 0.15,
15
+ "spiral": 137.5,
16
+ "lengthVariation": 0.15,
17
+ "taper": 0.42,
18
+ "bend": 0.12,
19
+ "gravity": 0.18,
20
+ "lengthProfile": [
21
+ {
22
+ "t": 0.48,
23
+ "value": 1.0
24
+ },
25
+ {
26
+ "t": 0.75,
27
+ "value": 0.9
28
+ },
29
+ {
30
+ "t": 1.0,
31
+ "value": 0.5
32
+ }
33
+ ],
34
+ "angleProfile": [
35
+ {
36
+ "t": 0.48,
37
+ "value": 1.2
38
+ },
39
+ {
40
+ "t": 1.0,
41
+ "value": 0.7
42
+ }
43
+ ],
44
+ "count": 8,
45
+ "start": 0.48,
46
+ "end": 0.96,
47
+ "angle": 42,
48
+ "length": 0.5,
49
+ "radius": 0.6
50
+ },
51
+ {
52
+ "angleVariation": 0.15,
53
+ "spiral": 137.5,
54
+ "lengthVariation": 0.15,
55
+ "taper": 0.45,
56
+ "bend": 0.12,
57
+ "gravity": 0.2,
58
+ "count": 3,
59
+ "start": 0.3,
60
+ "end": 1,
61
+ "angle": 38,
62
+ "length": 0.6,
63
+ "radius": 0.6
64
+ },
65
+ {
66
+ "angleVariation": 0.15,
67
+ "spiral": 137.5,
68
+ "lengthVariation": 0.15,
69
+ "taper": 0.45,
70
+ "bend": 0.1,
71
+ "gravity": 0.15,
72
+ "count": 2,
73
+ "start": 0.4,
74
+ "end": 1,
75
+ "angle": 35,
76
+ "length": 0.5,
77
+ "radius": 0.6
78
+ }
79
+ ],
80
+ "foliage": {
81
+ "type": "compound",
82
+ "density": 0.4,
83
+ "size": 0.65,
84
+ "sizeVariation": 0.25,
85
+ "start": 0.15,
86
+ "angle": 45
87
+ },
88
+ "bark": {
89
+ "type": "furrowed",
90
+ "color": "#a19d93"
91
+ },
92
+ "season": {
93
+ "leafColor": [
94
+ {
95
+ "t": 0,
96
+ "value": "#a5c45a"
97
+ },
98
+ {
99
+ "t": 0.2,
100
+ "value": "#5a8a3a"
101
+ },
102
+ {
103
+ "t": 0.5,
104
+ "value": "#5a8a3a"
105
+ },
106
+ {
107
+ "t": 0.58,
108
+ "value": "#c7b648"
109
+ },
110
+ {
111
+ "t": 0.6799999999999999,
112
+ "value": "#9c7a46"
113
+ },
114
+ {
115
+ "t": 0.97,
116
+ "value": "#9c7a46"
117
+ },
118
+ {
119
+ "t": 1,
120
+ "value": "#a5c45a"
121
+ }
122
+ ],
123
+ "leafCoverage": [
124
+ {
125
+ "t": 0,
126
+ "value": 0.3
127
+ },
128
+ {
129
+ "t": 0.1,
130
+ "value": 1
131
+ },
132
+ {
133
+ "t": 0.58,
134
+ "value": 1
135
+ },
136
+ {
137
+ "t": 0.7,
138
+ "value": 0
139
+ },
140
+ {
141
+ "t": 0.96,
142
+ "value": 0
143
+ },
144
+ {
145
+ "t": 1,
146
+ "value": 0.3
147
+ }
148
+ ],
149
+ "blossom": [
150
+ {
151
+ "t": 0,
152
+ "value": 0
153
+ }
154
+ ],
155
+ "blossomColor": "#d8d48a"
156
+ },
157
+ "wind": {
158
+ "trunk": 0.08,
159
+ "branches": 0.3,
160
+ "leaves": 0.6,
161
+ "frequency": 0.9
162
+ },
163
+ "variation": {
164
+ "color": 0.1,
165
+ "growth": 0.1,
166
+ "season": 0.05
167
+ }
168
+ }
@@ -0,0 +1,164 @@
1
+ // src/species/data/beech.json
2
+ var id = "beech";
3
+ var name = "Beech";
4
+ var form = "broadleaf";
5
+ var trunk = {
6
+ "length": 3.6,
7
+ "radius": .48,
8
+ "taper": .42,
9
+ "lengthVariation": .1,
10
+ "bend": .05
11
+ };
12
+ var branches = [{
13
+ "angleVariation": .15,
14
+ "spiral": 137.5,
15
+ "lengthVariation": .15,
16
+ "taper": .4,
17
+ "bend": .08,
18
+ "gravity": .12,
19
+ "lengthProfile": [
20
+ {
21
+ "t": .32,
22
+ "value": .95
23
+ },
24
+ {
25
+ "t": .6,
26
+ "value": 1
27
+ },
28
+ {
29
+ "t": .85,
30
+ "value": .8
31
+ },
32
+ {
33
+ "t": 1,
34
+ "value": .4
35
+ }
36
+ ],
37
+ "angleProfile": [{
38
+ "t": .32,
39
+ "value": 1.25
40
+ }, {
41
+ "t": 1,
42
+ "value": .5
43
+ }],
44
+ "count": 9,
45
+ "start": .32,
46
+ "end": .95,
47
+ "angle": 62,
48
+ "length": .8,
49
+ "radius": .55
50
+ }, {
51
+ "angleVariation": .15,
52
+ "spiral": 137.5,
53
+ "lengthVariation": .15,
54
+ "taper": .45,
55
+ "bend": .08,
56
+ "gravity": .05,
57
+ "count": 5,
58
+ "start": .25,
59
+ "end": 1,
60
+ "angle": 45,
61
+ "length": .5,
62
+ "radius": .6
63
+ }];
64
+ var foliage = {
65
+ "type": "broad",
66
+ "density": .6,
67
+ "size": .5,
68
+ "sizeVariation": .2,
69
+ "start": .05,
70
+ "angle": 55
71
+ };
72
+ var bark = {
73
+ "type": "smooth",
74
+ "color": "#a6a8a2"
75
+ };
76
+ var season = {
77
+ "leafColor": [
78
+ {
79
+ "t": 0,
80
+ "value": "#b2d35c"
81
+ },
82
+ {
83
+ "t": .2,
84
+ "value": "#3c6a2a"
85
+ },
86
+ {
87
+ "t": .52,
88
+ "value": "#3c6a2a"
89
+ },
90
+ {
91
+ "t": .6,
92
+ "value": "#b8762e"
93
+ },
94
+ {
95
+ "t": .7,
96
+ "value": "#8e4e26"
97
+ },
98
+ {
99
+ "t": .97,
100
+ "value": "#8e4e26"
101
+ },
102
+ {
103
+ "t": 1,
104
+ "value": "#b2d35c"
105
+ }
106
+ ],
107
+ "leafCoverage": [
108
+ {
109
+ "t": 0,
110
+ "value": .3
111
+ },
112
+ {
113
+ "t": .1,
114
+ "value": 1
115
+ },
116
+ {
117
+ "t": .68,
118
+ "value": 1
119
+ },
120
+ {
121
+ "t": .85,
122
+ "value": 0
123
+ },
124
+ {
125
+ "t": .96,
126
+ "value": 0
127
+ },
128
+ {
129
+ "t": 1,
130
+ "value": .3
131
+ }
132
+ ],
133
+ "blossom": [{
134
+ "t": 0,
135
+ "value": 0
136
+ }],
137
+ "blossomColor": "#d8d48a"
138
+ };
139
+ var wind = {
140
+ "trunk": .08,
141
+ "branches": .3,
142
+ "leaves": .6,
143
+ "frequency": .9
144
+ };
145
+ var variation = {
146
+ "color": .1,
147
+ "growth": .1,
148
+ "season": .05
149
+ };
150
+ var beech_default = {
151
+ id,
152
+ name,
153
+ form,
154
+ trunk,
155
+ branches,
156
+ foliage,
157
+ bark,
158
+ season,
159
+ wind,
160
+ variation
161
+ };
162
+ export { bark, branches, beech_default as default, foliage, form, id, name, season, trunk, variation, wind };
163
+
164
+ //# sourceMappingURL=beech.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beech.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,158 @@
1
+ {
2
+ "id": "beech",
3
+ "name": "Beech",
4
+ "form": "broadleaf",
5
+ "trunk": {
6
+ "length": 3.6,
7
+ "radius": 0.48,
8
+ "taper": 0.42,
9
+ "lengthVariation": 0.1,
10
+ "bend": 0.05
11
+ },
12
+ "branches": [
13
+ {
14
+ "angleVariation": 0.15,
15
+ "spiral": 137.5,
16
+ "lengthVariation": 0.15,
17
+ "taper": 0.4,
18
+ "bend": 0.08,
19
+ "gravity": 0.12,
20
+ "lengthProfile": [
21
+ {
22
+ "t": 0.32,
23
+ "value": 0.95
24
+ },
25
+ {
26
+ "t": 0.6,
27
+ "value": 1.0
28
+ },
29
+ {
30
+ "t": 0.85,
31
+ "value": 0.8
32
+ },
33
+ {
34
+ "t": 1.0,
35
+ "value": 0.4
36
+ }
37
+ ],
38
+ "angleProfile": [
39
+ {
40
+ "t": 0.32,
41
+ "value": 1.25
42
+ },
43
+ {
44
+ "t": 1.0,
45
+ "value": 0.5
46
+ }
47
+ ],
48
+ "count": 9,
49
+ "start": 0.32,
50
+ "end": 0.95,
51
+ "angle": 62,
52
+ "length": 0.8,
53
+ "radius": 0.55
54
+ },
55
+ {
56
+ "angleVariation": 0.15,
57
+ "spiral": 137.5,
58
+ "lengthVariation": 0.15,
59
+ "taper": 0.45,
60
+ "bend": 0.08,
61
+ "gravity": 0.05,
62
+ "count": 5,
63
+ "start": 0.25,
64
+ "end": 1,
65
+ "angle": 45,
66
+ "length": 0.5,
67
+ "radius": 0.6
68
+ }
69
+ ],
70
+ "foliage": {
71
+ "type": "broad",
72
+ "density": 0.6,
73
+ "size": 0.5,
74
+ "sizeVariation": 0.2,
75
+ "start": 0.05,
76
+ "angle": 55
77
+ },
78
+ "bark": {
79
+ "type": "smooth",
80
+ "color": "#a6a8a2"
81
+ },
82
+ "season": {
83
+ "leafColor": [
84
+ {
85
+ "t": 0,
86
+ "value": "#b2d35c"
87
+ },
88
+ {
89
+ "t": 0.2,
90
+ "value": "#3c6a2a"
91
+ },
92
+ {
93
+ "t": 0.52,
94
+ "value": "#3c6a2a"
95
+ },
96
+ {
97
+ "t": 0.6,
98
+ "value": "#b8762e"
99
+ },
100
+ {
101
+ "t": 0.7,
102
+ "value": "#8e4e26"
103
+ },
104
+ {
105
+ "t": 0.97,
106
+ "value": "#8e4e26"
107
+ },
108
+ {
109
+ "t": 1,
110
+ "value": "#b2d35c"
111
+ }
112
+ ],
113
+ "leafCoverage": [
114
+ {
115
+ "t": 0,
116
+ "value": 0.3
117
+ },
118
+ {
119
+ "t": 0.1,
120
+ "value": 1
121
+ },
122
+ {
123
+ "t": 0.68,
124
+ "value": 1
125
+ },
126
+ {
127
+ "t": 0.85,
128
+ "value": 0
129
+ },
130
+ {
131
+ "t": 0.96,
132
+ "value": 0
133
+ },
134
+ {
135
+ "t": 1,
136
+ "value": 0.3
137
+ }
138
+ ],
139
+ "blossom": [
140
+ {
141
+ "t": 0,
142
+ "value": 0
143
+ }
144
+ ],
145
+ "blossomColor": "#d8d48a"
146
+ },
147
+ "wind": {
148
+ "trunk": 0.08,
149
+ "branches": 0.3,
150
+ "leaves": 0.6,
151
+ "frequency": 0.9
152
+ },
153
+ "variation": {
154
+ "color": 0.1,
155
+ "growth": 0.1,
156
+ "season": 0.05
157
+ }
158
+ }