Visualize binary trees with this interactive web application powered by p5.js.
This project is a binary tree visualization tool that allows users to interactively explore and manipulate binary tree structures. It uses p5.js for rendering and comes with a set of controls for easy navigation.
- Visualize binary tree structures.
- Clear the tree or perform quick/slow fills.
- Add, search, and delete nodes.
- Adjustable animation speed.
- p5.js: A JavaScript library for creative coding.
- Clone the repository:
bash Copy code git clone https://github.com/your-username/binary-tree-visualization.git .
- Open the index.html file in your preferred web browser
- Open the index.html file in a web browser.
- Use the provided buttons to interact with the binary tree.
- Adjust the animation speed with the slider.
- Clear: Clear the tree.
- Quick Fill: Quickly fill the tree with nodes.
- Fill: Fill the tree with nodes at a slower pace.
- Add: Add a node to the tree.
- Search: Search for a node in the tree.
- Delete: Delete a node from the tree.
- Speed Slider: Adjust the animation speed.