@casmo/tree.js 0.1.1 → 0.3.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 (220) hide show
  1. package/README.md +312 -16
  2. package/dist/apply-Cio2t7CZ.js +285 -0
  3. package/dist/apply-Cio2t7CZ.js.map +1 -0
  4. package/dist/bake/index.d.ts +44 -5
  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 +15 -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 +181 -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 +37 -2
  22. package/dist/forest/Forest.d.ts.map +1 -1
  23. package/dist/forest/nodes.d.ts +6 -1
  24. package/dist/forest/nodes.d.ts.map +1 -1
  25. package/dist/{forest-OX9WvAwh.js → forest-ChEaWJrf.js} +1763 -684
  26. package/dist/forest-ChEaWJrf.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/crown.d.ts +28 -0
  30. package/dist/generator/crown.d.ts.map +1 -0
  31. package/dist/generator/fruit.d.ts +28 -0
  32. package/dist/generator/fruit.d.ts.map +1 -0
  33. package/dist/generator/growth.d.ts +1 -1
  34. package/dist/generator/growth.d.ts.map +1 -1
  35. package/dist/generator/index.d.ts +5 -4
  36. package/dist/generator/index.d.ts.map +1 -1
  37. package/dist/generator/leaf-shapes.d.ts +33 -1
  38. package/dist/generator/leaf-shapes.d.ts.map +1 -1
  39. package/dist/generator/mesh.d.ts +10 -2
  40. package/dist/generator/mesh.d.ts.map +1 -1
  41. package/dist/generator/occlusion.d.ts +8 -0
  42. package/dist/generator/occlusion.d.ts.map +1 -0
  43. package/dist/generator/roots.d.ts +16 -0
  44. package/dist/generator/roots.d.ts.map +1 -0
  45. package/dist/generator/trunk.d.ts +16 -2
  46. package/dist/generator/trunk.d.ts.map +1 -1
  47. package/dist/generator/types.d.ts +61 -6
  48. package/dist/generator/types.d.ts.map +1 -1
  49. package/dist/growth/index.d.ts +1 -1
  50. package/dist/growth/index.d.ts.map +1 -1
  51. package/dist/growth/tsl.d.ts +2 -0
  52. package/dist/growth/tsl.d.ts.map +1 -1
  53. package/dist/index.d.ts +6 -3
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +274 -24
  56. package/dist/index.js.map +1 -1
  57. package/dist/materials/crown-nodes.d.ts +20 -0
  58. package/dist/materials/crown-nodes.d.ts.map +1 -0
  59. package/dist/materials/crown-normals.d.ts +17 -0
  60. package/dist/materials/crown-normals.d.ts.map +1 -0
  61. package/dist/materials/ground-tint.d.ts +13 -0
  62. package/dist/materials/ground-tint.d.ts.map +1 -0
  63. package/dist/materials/index.d.ts +13 -1
  64. package/dist/materials/index.d.ts.map +1 -1
  65. package/dist/materials/leaf-translucency-model.d.ts +14 -0
  66. package/dist/materials/leaf-translucency-model.d.ts.map +1 -0
  67. package/dist/materials/leaf-translucency.d.ts +73 -0
  68. package/dist/materials/leaf-translucency.d.ts.map +1 -0
  69. package/dist/materials/material-features.d.ts +43 -0
  70. package/dist/materials/material-features.d.ts.map +1 -0
  71. package/dist/materials/occlusion.d.ts +10 -0
  72. package/dist/materials/occlusion.d.ts.map +1 -0
  73. package/dist/materials/toon.d.ts +18 -1
  74. package/dist/materials/toon.d.ts.map +1 -1
  75. package/dist/names-BE9he6CS.js +713 -0
  76. package/dist/names-BE9he6CS.js.map +1 -0
  77. package/dist/react/Tree.d.ts +5 -2
  78. package/dist/react/Tree.d.ts.map +1 -1
  79. package/dist/react.js +10 -6
  80. package/dist/react.js.map +1 -1
  81. package/dist/season/nodes.d.ts +16 -0
  82. package/dist/season/nodes.d.ts.map +1 -1
  83. package/dist/season/profile.d.ts +26 -0
  84. package/dist/season/profile.d.ts.map +1 -1
  85. package/dist/species/almond.js +223 -0
  86. package/dist/species/almond.js.map +1 -0
  87. package/dist/species/almond.json +210 -0
  88. package/dist/species/apple.js +230 -0
  89. package/dist/species/apple.js.map +1 -0
  90. package/dist/species/apple.json +220 -0
  91. package/dist/species/ash.js +187 -0
  92. package/dist/species/ash.js.map +1 -0
  93. package/dist/species/ash.json +177 -0
  94. package/dist/species/beech.js +174 -0
  95. package/dist/species/beech.js.map +1 -0
  96. package/dist/species/beech.json +167 -0
  97. package/dist/species/birch.js +170 -0
  98. package/dist/species/birch.js.map +1 -0
  99. package/dist/species/birch.json +163 -0
  100. package/dist/species/catalog.d.ts +61 -0
  101. package/dist/species/catalog.d.ts.map +1 -0
  102. package/dist/species/cedar.js +169 -0
  103. package/dist/species/cedar.js.map +1 -0
  104. package/dist/species/cedar.json +168 -0
  105. package/dist/species/cherry.js +237 -0
  106. package/dist/species/cherry.js.map +1 -0
  107. package/dist/species/cherry.json +224 -0
  108. package/dist/species/chestnut.js +230 -0
  109. package/dist/species/chestnut.js.map +1 -0
  110. package/dist/species/chestnut.json +220 -0
  111. package/dist/species/douglas-fir.js +174 -0
  112. package/dist/species/douglas-fir.js.map +1 -0
  113. package/dist/species/douglas-fir.json +170 -0
  114. package/dist/species/elm.js +173 -0
  115. package/dist/species/elm.js.map +1 -0
  116. package/dist/species/elm.json +163 -0
  117. package/dist/species/hemlock.js +175 -0
  118. package/dist/species/hemlock.js.map +1 -0
  119. package/dist/species/hemlock.json +171 -0
  120. package/dist/species/hickory.js +200 -0
  121. package/dist/species/hickory.js.map +1 -0
  122. package/dist/species/hickory.json +192 -0
  123. package/dist/species/index.d.ts +10 -0
  124. package/dist/species/index.d.ts.map +1 -0
  125. package/dist/species/juniper.js +158 -0
  126. package/dist/species/juniper.js.map +1 -0
  127. package/dist/species/juniper.json +154 -0
  128. package/dist/species/loaders.d.ts +7 -0
  129. package/dist/species/loaders.d.ts.map +1 -0
  130. package/dist/species/mahogany.js +201 -0
  131. package/dist/species/mahogany.js.map +1 -0
  132. package/dist/species/mahogany.json +196 -0
  133. package/dist/species/maple.js +177 -0
  134. package/dist/species/maple.js.map +1 -0
  135. package/dist/species/maple.json +171 -0
  136. package/dist/species/oak.js +220 -0
  137. package/dist/species/oak.js.map +1 -0
  138. package/dist/species/oak.json +212 -0
  139. package/dist/species/olive.js +189 -0
  140. package/dist/species/olive.js.map +1 -0
  141. package/dist/species/olive.json +181 -0
  142. package/dist/species/peach.js +223 -0
  143. package/dist/species/peach.js.map +1 -0
  144. package/dist/species/peach.json +210 -0
  145. package/dist/species/pear.js +213 -0
  146. package/dist/species/pear.js.map +1 -0
  147. package/dist/species/pear.json +200 -0
  148. package/dist/species/pine.js +163 -0
  149. package/dist/species/pine.js.map +1 -0
  150. package/dist/species/pine.json +162 -0
  151. package/dist/species/plum.js +237 -0
  152. package/dist/species/plum.js.map +1 -0
  153. package/dist/species/plum.json +224 -0
  154. package/dist/species/red-oak.js +220 -0
  155. package/dist/species/red-oak.js.map +1 -0
  156. package/dist/species/red-oak.json +212 -0
  157. package/dist/species/redwood.js +174 -0
  158. package/dist/species/redwood.js.map +1 -0
  159. package/dist/species/redwood.json +170 -0
  160. package/dist/species/sequoia.js +167 -0
  161. package/dist/species/sequoia.js.map +1 -0
  162. package/dist/species/sequoia.json +166 -0
  163. package/dist/species/spruce.js +170 -0
  164. package/dist/species/spruce.js.map +1 -0
  165. package/dist/species/spruce.json +166 -0
  166. package/dist/species/teak.js +166 -0
  167. package/dist/species/teak.js.map +1 -0
  168. package/dist/species/teak.json +157 -0
  169. package/dist/species/types.d.ts +65 -0
  170. package/dist/species/types.d.ts.map +1 -0
  171. package/dist/species/walnut.js +220 -0
  172. package/dist/species/walnut.js.map +1 -0
  173. package/dist/species/walnut.json +212 -0
  174. package/dist/species/white-oak.js +213 -0
  175. package/dist/species/white-oak.js.map +1 -0
  176. package/dist/species/white-oak.json +208 -0
  177. package/dist/species.js +160 -0
  178. package/dist/species.js.map +1 -0
  179. package/dist/styles/apply.d.ts +12 -0
  180. package/dist/styles/apply.d.ts.map +1 -0
  181. package/dist/styles/low-poly/index.d.ts +1 -1
  182. package/dist/styles/low-poly/index.d.ts.map +1 -1
  183. package/dist/styles/low-poly.js +13 -10
  184. package/dist/styles/low-poly.js.map +1 -1
  185. package/dist/styles/material-features.d.ts +27 -0
  186. package/dist/styles/material-features.d.ts.map +1 -0
  187. package/dist/styles/names.d.ts +28 -0
  188. package/dist/styles/names.d.ts.map +1 -0
  189. package/dist/styles/realistic/index.d.ts +3 -8
  190. package/dist/styles/realistic/index.d.ts.map +1 -1
  191. package/dist/styles/realistic/textures.d.ts +20 -0
  192. package/dist/styles/realistic/textures.d.ts.map +1 -0
  193. package/dist/styles/realistic.js +14 -18
  194. package/dist/styles/realistic.js.map +1 -1
  195. package/dist/styles/registry.d.ts +2 -13
  196. package/dist/styles/registry.d.ts.map +1 -1
  197. package/dist/styles/stylized/index.d.ts +1 -1
  198. package/dist/styles/stylized/index.d.ts.map +1 -1
  199. package/dist/styles/stylized.js +13 -10
  200. package/dist/styles/stylized.js.map +1 -1
  201. package/dist/styles/types.d.ts +16 -2
  202. package/dist/styles/types.d.ts.map +1 -1
  203. package/dist/textures/realistic/bark-fibrous-normal.png +0 -0
  204. package/dist/textures/realistic/bark-fibrous.png +0 -0
  205. package/dist/textures/realistic/bark-papery-normal.png +0 -0
  206. package/dist/textures/realistic/bark-papery.png +0 -0
  207. package/dist/textures/realistic/bark-plated-normal.png +0 -0
  208. package/dist/textures/realistic/bark-plated.png +0 -0
  209. package/dist/textures/realistic/bark-smooth-normal.png +0 -0
  210. package/dist/textures/realistic/bark-smooth.png +0 -0
  211. package/dist/textures/realistic/leaf-compound.png +0 -0
  212. package/dist/textures/realistic/leaf-lobed.png +0 -0
  213. package/dist/textures/realistic/leaf-palmate.png +0 -0
  214. package/dist/textures/realistic/scale.png +0 -0
  215. package/dist/tree/Tree.d.ts +34 -5
  216. package/dist/tree/Tree.d.ts.map +1 -1
  217. package/package.json +9 -2
  218. package/dist/forest-OX9WvAwh.js.map +0 -1
  219. package/dist/types-BZjHhNz7.js +0 -20
  220. package/dist/types-BZjHhNz7.js.map +0 -1
@@ -0,0 +1,170 @@
1
+ {
2
+ "id": "douglas-fir",
3
+ "name": "Douglas Fir",
4
+ "form": "conifer",
5
+ "trunk": {
6
+ "length": 10,
7
+ "radius": 0.3,
8
+ "taper": 0.15,
9
+ "lengthVariation": 0.12,
10
+ "bend": 0.04,
11
+ "flare": 0.15
12
+ },
13
+ "branches": [
14
+ {
15
+ "angleVariation": 0.1,
16
+ "spiral": 137.5,
17
+ "lengthVariation": 0.15,
18
+ "taper": 0.3,
19
+ "bend": 0.06,
20
+ "gravity": 0.02,
21
+ "lengthProfile": [
22
+ {
23
+ "t": 0.12,
24
+ "value": 1.0
25
+ },
26
+ {
27
+ "t": 0.3,
28
+ "value": 0.9
29
+ },
30
+ {
31
+ "t": 0.97,
32
+ "value": 0.06
33
+ },
34
+ {
35
+ "t": 1.0,
36
+ "value": 0.05
37
+ }
38
+ ],
39
+ "angleProfile": [
40
+ {
41
+ "t": 0.12,
42
+ "value": 1.08
43
+ },
44
+ {
45
+ "t": 0.7,
46
+ "value": 0.85
47
+ },
48
+ {
49
+ "t": 1.0,
50
+ "value": 0.4
51
+ }
52
+ ],
53
+ "count": 20,
54
+ "start": 0.1,
55
+ "end": 0.93,
56
+ "angle": 84,
57
+ "length": 0.36,
58
+ "radius": 0.3
59
+ },
60
+ {
61
+ "angleVariation": 0.15,
62
+ "spiral": 137.5,
63
+ "lengthVariation": 0.15,
64
+ "taper": 0.3,
65
+ "bend": 0.08,
66
+ "gravity": -0.05,
67
+ "count": 3,
68
+ "start": 0.3,
69
+ "end": 1,
70
+ "angle": 42,
71
+ "length": 0.5,
72
+ "radius": 0.5
73
+ }
74
+ ],
75
+ "foliage": {
76
+ "type": "needle",
77
+ "density": 0.18,
78
+ "size": 1.0,
79
+ "sizeVariation": 0.2,
80
+ "start": 0,
81
+ "angle": 40
82
+ },
83
+ "bark": {
84
+ "type": "furrowed",
85
+ "color": "#9a7e68"
86
+ },
87
+ "fruit": {
88
+ "type": "cone",
89
+ "count": 0.15,
90
+ "size": 0.2,
91
+ "sizeVariation": 0.2,
92
+ "hang": 0.9
93
+ },
94
+ "roots": {
95
+ "count": 3,
96
+ "length": 0.1,
97
+ "lengthVariation": 0.3,
98
+ "radius": 0.22,
99
+ "angle": 20,
100
+ "bend": 0.25
101
+ },
102
+ "season": {
103
+ "leafColor": [
104
+ {
105
+ "t": 0,
106
+ "value": "#5b8a45"
107
+ },
108
+ {
109
+ "t": 0.25,
110
+ "value": "#3d6e3a"
111
+ },
112
+ {
113
+ "t": 0.55,
114
+ "value": "#3d6e3a"
115
+ },
116
+ {
117
+ "t": 0.75,
118
+ "value": "#315a30"
119
+ },
120
+ {
121
+ "t": 0.92,
122
+ "value": "#315a30"
123
+ },
124
+ {
125
+ "t": 1,
126
+ "value": "#5b8a45"
127
+ }
128
+ ],
129
+ "leafCoverage": [
130
+ {
131
+ "t": 0,
132
+ "value": 1
133
+ }
134
+ ],
135
+ "blossom": [
136
+ {
137
+ "t": 0,
138
+ "value": 0
139
+ }
140
+ ],
141
+ "blossomColor": "#c9b46a",
142
+ "fruit": [
143
+ {
144
+ "t": 0,
145
+ "value": 1
146
+ }
147
+ ],
148
+ "fruitColor": [
149
+ {
150
+ "t": 0.15,
151
+ "value": "#8a9a45"
152
+ },
153
+ {
154
+ "t": 0.55,
155
+ "value": "#8a6238"
156
+ }
157
+ ]
158
+ },
159
+ "wind": {
160
+ "trunk": 0.08,
161
+ "branches": 0.3,
162
+ "leaves": 0.4,
163
+ "frequency": 0.8
164
+ },
165
+ "variation": {
166
+ "color": 0.08,
167
+ "growth": 0.1,
168
+ "season": 0.05
169
+ }
170
+ }
@@ -0,0 +1,173 @@
1
+ // src/species/data/elm.json
2
+ var id = "elm";
3
+ var name = "Elm";
4
+ var form = "broadleaf";
5
+ var trunk = {
6
+ "length": 3,
7
+ "radius": .42,
8
+ "taper": .4,
9
+ "lengthVariation": .1,
10
+ "bend": .06,
11
+ "flare": .4
12
+ };
13
+ var branches = [
14
+ {
15
+ "angleVariation": .12,
16
+ "spiral": 137.5,
17
+ "lengthVariation": .15,
18
+ "taper": .4,
19
+ "bend": .08,
20
+ "gravity": 0,
21
+ "lengthProfile": [{
22
+ "t": .82,
23
+ "value": 1
24
+ }, {
25
+ "t": 1,
26
+ "value": .85
27
+ }],
28
+ "count": 5,
29
+ "start": .82,
30
+ "end": 1,
31
+ "angle": 28,
32
+ "length": 2.4,
33
+ "radius": .7
34
+ },
35
+ {
36
+ "angleVariation": .15,
37
+ "spiral": 137.5,
38
+ "lengthVariation": .15,
39
+ "taper": .45,
40
+ "bend": .1,
41
+ "gravity": -.25,
42
+ "count": 3,
43
+ "start": .4,
44
+ "end": 1,
45
+ "angle": 40,
46
+ "length": .4,
47
+ "radius": .6
48
+ },
49
+ {
50
+ "angleVariation": .15,
51
+ "spiral": 137.5,
52
+ "lengthVariation": .15,
53
+ "taper": .45,
54
+ "bend": .1,
55
+ "gravity": -.7,
56
+ "count": 3,
57
+ "start": .3,
58
+ "end": 1,
59
+ "angle": 40,
60
+ "length": .6,
61
+ "radius": .6
62
+ }
63
+ ];
64
+ var foliage = {
65
+ "type": "broad",
66
+ "density": .45,
67
+ "size": .5,
68
+ "sizeVariation": .25,
69
+ "start": .1,
70
+ "angle": 50
71
+ };
72
+ var bark = {
73
+ "type": "furrowed",
74
+ "color": "#918878"
75
+ };
76
+ var roots = {
77
+ "count": 5,
78
+ "length": .2,
79
+ "lengthVariation": .3,
80
+ "radius": .3,
81
+ "angle": 14,
82
+ "bend": .3
83
+ };
84
+ var season = {
85
+ "leafColor": [
86
+ {
87
+ "t": 0,
88
+ "value": "#a5c45a"
89
+ },
90
+ {
91
+ "t": .2,
92
+ "value": "#3e6a2c"
93
+ },
94
+ {
95
+ "t": .52,
96
+ "value": "#3e6a2c"
97
+ },
98
+ {
99
+ "t": .6,
100
+ "value": "#c6a838"
101
+ },
102
+ {
103
+ "t": .7,
104
+ "value": "#a98232"
105
+ },
106
+ {
107
+ "t": .97,
108
+ "value": "#a98232"
109
+ },
110
+ {
111
+ "t": 1,
112
+ "value": "#a5c45a"
113
+ }
114
+ ],
115
+ "leafCoverage": [
116
+ {
117
+ "t": 0,
118
+ "value": .3
119
+ },
120
+ {
121
+ "t": .1,
122
+ "value": 1
123
+ },
124
+ {
125
+ "t": .62,
126
+ "value": 1
127
+ },
128
+ {
129
+ "t": .78,
130
+ "value": 0
131
+ },
132
+ {
133
+ "t": .96,
134
+ "value": 0
135
+ },
136
+ {
137
+ "t": 1,
138
+ "value": .3
139
+ }
140
+ ],
141
+ "blossom": [{
142
+ "t": 0,
143
+ "value": 0
144
+ }],
145
+ "blossomColor": "#d8d48a"
146
+ };
147
+ var wind = {
148
+ "trunk": .08,
149
+ "branches": .35,
150
+ "leaves": .7,
151
+ "frequency": .9
152
+ };
153
+ var variation = {
154
+ "color": .1,
155
+ "growth": .1,
156
+ "season": .05
157
+ };
158
+ var elm_default = {
159
+ id: "elm",
160
+ name: "Elm",
161
+ form,
162
+ trunk,
163
+ branches,
164
+ foliage,
165
+ bark,
166
+ roots,
167
+ season,
168
+ wind,
169
+ variation
170
+ };
171
+ export { bark, branches, elm_default as default, foliage, form, id, name, roots, season, trunk, variation, wind };
172
+
173
+ //# sourceMappingURL=elm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,163 @@
1
+ {
2
+ "id": "elm",
3
+ "name": "Elm",
4
+ "form": "broadleaf",
5
+ "trunk": {
6
+ "length": 3,
7
+ "radius": 0.42,
8
+ "taper": 0.4,
9
+ "lengthVariation": 0.1,
10
+ "bend": 0.06,
11
+ "flare": 0.4
12
+ },
13
+ "branches": [
14
+ {
15
+ "angleVariation": 0.12,
16
+ "spiral": 137.5,
17
+ "lengthVariation": 0.15,
18
+ "taper": 0.4,
19
+ "bend": 0.08,
20
+ "gravity": 0,
21
+ "lengthProfile": [
22
+ {
23
+ "t": 0.82,
24
+ "value": 1.0
25
+ },
26
+ {
27
+ "t": 1.0,
28
+ "value": 0.85
29
+ }
30
+ ],
31
+ "count": 5,
32
+ "start": 0.82,
33
+ "end": 1,
34
+ "angle": 28,
35
+ "length": 2.4,
36
+ "radius": 0.7
37
+ },
38
+ {
39
+ "angleVariation": 0.15,
40
+ "spiral": 137.5,
41
+ "lengthVariation": 0.15,
42
+ "taper": 0.45,
43
+ "bend": 0.1,
44
+ "gravity": -0.25,
45
+ "count": 3,
46
+ "start": 0.4,
47
+ "end": 1,
48
+ "angle": 40,
49
+ "length": 0.4,
50
+ "radius": 0.6
51
+ },
52
+ {
53
+ "angleVariation": 0.15,
54
+ "spiral": 137.5,
55
+ "lengthVariation": 0.15,
56
+ "taper": 0.45,
57
+ "bend": 0.1,
58
+ "gravity": -0.7,
59
+ "count": 3,
60
+ "start": 0.3,
61
+ "end": 1,
62
+ "angle": 40,
63
+ "length": 0.6,
64
+ "radius": 0.6
65
+ }
66
+ ],
67
+ "foliage": {
68
+ "type": "broad",
69
+ "density": 0.45,
70
+ "size": 0.5,
71
+ "sizeVariation": 0.25,
72
+ "start": 0.1,
73
+ "angle": 50
74
+ },
75
+ "bark": {
76
+ "type": "furrowed",
77
+ "color": "#918878"
78
+ },
79
+ "roots": {
80
+ "count": 5,
81
+ "length": 0.2,
82
+ "lengthVariation": 0.3,
83
+ "radius": 0.3,
84
+ "angle": 14,
85
+ "bend": 0.3
86
+ },
87
+ "season": {
88
+ "leafColor": [
89
+ {
90
+ "t": 0,
91
+ "value": "#a5c45a"
92
+ },
93
+ {
94
+ "t": 0.2,
95
+ "value": "#3e6a2c"
96
+ },
97
+ {
98
+ "t": 0.52,
99
+ "value": "#3e6a2c"
100
+ },
101
+ {
102
+ "t": 0.6,
103
+ "value": "#c6a838"
104
+ },
105
+ {
106
+ "t": 0.7,
107
+ "value": "#a98232"
108
+ },
109
+ {
110
+ "t": 0.97,
111
+ "value": "#a98232"
112
+ },
113
+ {
114
+ "t": 1,
115
+ "value": "#a5c45a"
116
+ }
117
+ ],
118
+ "leafCoverage": [
119
+ {
120
+ "t": 0,
121
+ "value": 0.3
122
+ },
123
+ {
124
+ "t": 0.1,
125
+ "value": 1
126
+ },
127
+ {
128
+ "t": 0.62,
129
+ "value": 1
130
+ },
131
+ {
132
+ "t": 0.78,
133
+ "value": 0
134
+ },
135
+ {
136
+ "t": 0.96,
137
+ "value": 0
138
+ },
139
+ {
140
+ "t": 1,
141
+ "value": 0.3
142
+ }
143
+ ],
144
+ "blossom": [
145
+ {
146
+ "t": 0,
147
+ "value": 0
148
+ }
149
+ ],
150
+ "blossomColor": "#d8d48a"
151
+ },
152
+ "wind": {
153
+ "trunk": 0.08,
154
+ "branches": 0.35,
155
+ "leaves": 0.7,
156
+ "frequency": 0.9
157
+ },
158
+ "variation": {
159
+ "color": 0.1,
160
+ "growth": 0.1,
161
+ "season": 0.05
162
+ }
163
+ }
@@ -0,0 +1,175 @@
1
+ // src/species/data/hemlock.json
2
+ var id = "hemlock";
3
+ var name = "Hemlock";
4
+ var form = "conifer";
5
+ var trunk = {
6
+ "length": 8,
7
+ "radius": .26,
8
+ "taper": .12,
9
+ "lengthVariation": .12,
10
+ "bend": .05,
11
+ "gravity": -.45,
12
+ "flare": .15
13
+ };
14
+ var branches = [{
15
+ "angleVariation": .15,
16
+ "spiral": 137.5,
17
+ "lengthVariation": .15,
18
+ "taper": .3,
19
+ "bend": .1,
20
+ "gravity": -.18,
21
+ "lengthProfile": [
22
+ {
23
+ "t": .08,
24
+ "value": .9
25
+ },
26
+ {
27
+ "t": .25,
28
+ "value": 1
29
+ },
30
+ {
31
+ "t": .93,
32
+ "value": .15
33
+ },
34
+ {
35
+ "t": 1,
36
+ "value": .1
37
+ }
38
+ ],
39
+ "angleProfile": [
40
+ {
41
+ "t": .08,
42
+ "value": 1.05
43
+ },
44
+ {
45
+ "t": .7,
46
+ "value": .95
47
+ },
48
+ {
49
+ "t": 1,
50
+ "value": .65
51
+ }
52
+ ],
53
+ "count": 20,
54
+ "start": .08,
55
+ "end": .93,
56
+ "angle": 86,
57
+ "length": .38,
58
+ "radius": .28
59
+ }, {
60
+ "angleVariation": .15,
61
+ "spiral": 180,
62
+ "lengthVariation": .15,
63
+ "taper": .3,
64
+ "bend": .12,
65
+ "gravity": -.4,
66
+ "count": 3,
67
+ "start": .25,
68
+ "end": 1,
69
+ "angle": 55,
70
+ "length": .45,
71
+ "radius": .5
72
+ }];
73
+ var foliage = {
74
+ "type": "needle",
75
+ "density": .18,
76
+ "size": .9,
77
+ "sizeVariation": .2,
78
+ "start": 0,
79
+ "angle": 30
80
+ };
81
+ var bark = {
82
+ "type": "furrowed",
83
+ "color": "#93796a"
84
+ };
85
+ var fruit = {
86
+ "type": "cone",
87
+ "count": .2,
88
+ "size": .1,
89
+ "sizeVariation": .2,
90
+ "hang": .9
91
+ };
92
+ var roots = {
93
+ "count": 3,
94
+ "length": .1,
95
+ "lengthVariation": .3,
96
+ "radius": .22,
97
+ "angle": 20,
98
+ "bend": .25
99
+ };
100
+ var season = {
101
+ "leafColor": [
102
+ {
103
+ "t": 0,
104
+ "value": "#6b9a4a"
105
+ },
106
+ {
107
+ "t": .25,
108
+ "value": "#55863e"
109
+ },
110
+ {
111
+ "t": .55,
112
+ "value": "#55863e"
113
+ },
114
+ {
115
+ "t": .75,
116
+ "value": "#3a6334"
117
+ },
118
+ {
119
+ "t": .92,
120
+ "value": "#3a6334"
121
+ },
122
+ {
123
+ "t": 1,
124
+ "value": "#6b9a4a"
125
+ }
126
+ ],
127
+ "leafCoverage": [{
128
+ "t": 0,
129
+ "value": 1
130
+ }],
131
+ "blossom": [{
132
+ "t": 0,
133
+ "value": 0
134
+ }],
135
+ "blossomColor": "#c9b46a",
136
+ "fruit": [{
137
+ "t": 0,
138
+ "value": 1
139
+ }],
140
+ "fruitColor": [{
141
+ "t": .15,
142
+ "value": "#8aa048"
143
+ }, {
144
+ "t": .55,
145
+ "value": "#7d5a36"
146
+ }]
147
+ };
148
+ var wind = {
149
+ "trunk": .1,
150
+ "branches": .4,
151
+ "leaves": .5,
152
+ "frequency": .8
153
+ };
154
+ var variation = {
155
+ "color": .08,
156
+ "growth": .1,
157
+ "season": .05
158
+ };
159
+ var hemlock_default = {
160
+ id,
161
+ name,
162
+ form,
163
+ trunk,
164
+ branches,
165
+ foliage,
166
+ bark,
167
+ fruit,
168
+ roots,
169
+ season,
170
+ wind,
171
+ variation
172
+ };
173
+ export { bark, branches, hemlock_default as default, foliage, form, fruit, id, name, roots, season, trunk, variation, wind };
174
+
175
+ //# sourceMappingURL=hemlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hemlock.js","names":[],"sources":[],"mappings":""}