This project is a canvas experiment. You can adjust parameters to draw a perfect tree for yourself!
- Click the mouse to draw a tree using current settings on the control panel.
- The control panel can be folded and unfolded.
Based on dat.gui, a light-weight UI controller.
Just a text description. As written, all settings will be applied on the next tree.
Set the scale parameter.
- drawLeaves
True
to draw leaves andFalse
to disable. - leavesColor
Set the color of leaves. - leavesWidth
The leaves are rectangles. Use this to set the width of leaf rectangles. - leavesHeight
Set the height of all leaves.
- spread
Set the symmetry level. - branchWidth
Set the thickness of branches. - maxBranchLength
Set the maximum length of branches. - maxBranchGenerations
All trees are binary trees. Use this to set the height of all trees.
- random
Randomly generate a suite of settings. - clear
Clear the canvas.
- First released on Github pages.