Last week I sat down to see how I can generate a fractal tree on a web page. It turned out to be a very interesting exercise using HTML5 Canvas and simple Math trigonometric functions. Using random numbers for changing the length of the tree branch, and the angle of branch split -- I was quite successful in generating very realistic looking trees!
Each time you render the HTML, the trees look quite different. I can see how Game creators can create interesting looking forests for "heroes" to travel in using such techniques.
![]() |
HTML 5 Canvas with a Fractal Tree |
Here is the code (also posted on github):
Tecno N8 Price, Specifications & Features
https://ikkemunandar.blogspot.com/2016/09/tecno-n8-price-specifications-features.html
Infinity Box Chinese Miracle 2 MTK v 1.58 setup download
https://ikkemunandar.blogspot.com/2016/10/infinity-box-chinese-miracle-2-mtk-v.html
Z3X BOX Samsung Tool PRO V 26.9 Setup Download
https://ikkemunandar.blogspot.com/2016/10/z3x-box-samsung-tool-pro-v-269-setup.html
Tidak ada komentar:
Posting Komentar