https://github.com/davidhampgonsalves/generative-tree-rings
Vector Tree Ring Generator for Pen Plotting
https://github.com/davidhampgonsalves/generative-tree-rings
featured java paperjs penplotter svg
Last synced: 6 months ago
JSON representation
Vector Tree Ring Generator for Pen Plotting
- Host: GitHub
- URL: https://github.com/davidhampgonsalves/generative-tree-rings
- Owner: davidhampgonsalves
- License: bsd-2-clause
- Created: 2015-09-25T17:28:57.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-16T20:22:51.000Z (almost 2 years ago)
- Last Synced: 2023-10-17T09:17:27.551Z (almost 2 years ago)
- Topics: featured, java, paperjs, penplotter, svg
- Language: HTML
- Homepage: https://davidhampgonsalves.com/failed-projects-tree-ring-generation/
- Size: 15 MB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# Tree-Ring Generation
Simulates randomized enviornmental factors to "grow" a tree and then cut it down to see its age rings.
![]()
## Running
Load `tree.htm` in a browser (Ideally Firefox).Each time the page loads it will generate a new tree ring. Once you have one you like click the generate SVG link, which will write the svg markup to the console for you to copy into a file.
If the script blows up or generates something bizzare, take a deep breath and refresh the page. This code is inefficient, error prone and a mess caused by its many purposes and long life.
## History
Originally this code generated color svg files but I was never happy with the results (see [old commit](https://github.com/davidhampgonsalves/tree-rings/tree/a574a05993379ea14bbe47f3019c5f65fad7595e) for samples). After building a [MidTBot](https://github.com/bdring/midTbot_esp32) I modified the code to generate a more plotable svg.
You can read more about the original idea [in this blog post](https://www.davidhampgonsalves.com/failed-projects-tree-ring-generation/).
![]()
![]()
![]()