Skip to content

yplsydnr/simple-js-fractal-tree-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple javascript fractal tree generator

a simple index.html file that will display a recursively generated tree. the program is entirely contained in the index.html file.

I had previously uploaded my tree drawing program as a vue.js project, because it's from a larger personal project. But I realised it would be much more useful to condense and move to a simple index.html that can be dragged directly into the browser.

This project is to demonstrate basic use of canvas in HTML, and to have a recursive drawing function, because fractal shapes are cool. This code is also a good starting point for tinkering, and even small changes can cause significant effects. Not all of the trees will look great, but some are pretty good in my opinion. Hope you enjoy!

(click for slightly better quality -- saving these images preserves the exact shape of the tree with no background, so you can easily use the trees in other things.) alt text alt text alt text alt text

About

this single index.html file will generate a unique fractal tree in your browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages