An educational Python project for visualizing 2D and 3D geometric transformations such as rotation, scaling, and translation — built with NumPy and Matplotlib.
- to run: python 2d-playground.py
- Rotate and scale 2D shapes (like squares or polygons)
- Interactive version lets you drag vertices and use sliders for live transformations
- to run: python 3d-playground.py
- Rotate, scale, and translate a cube in 3D space
- Adjust rotation angles (X, Y, Z) and scale with interactive sliders
- Orbit and zoom the camera using your mouse
- Optional: drag vertices in screen space to reshape the cube
- Python 3.10 or newer
- Dependencies:
Python Manager
- How to run the file:
python -m venv venv venv\Scripts\activate on Windows pip install -r requirements.txt