This project generates a simple nature scene using Python's matplotlib library. The scene includes mountains, a sun, a tree, and a cloud, all drawn using geometric shapes.
- Draws a nature scene with:
- Two mountains
- A sun
- A tree (trunk and leaves)
- A cloud
- Uses
matplotlibfor visualization. - Customizable styles and layout.
- Python 3.7 or higher
matplotliband other dependencies listed inrequirements.txt
-
Clone the repository or download the project files.
-
Open a terminal and navigate to the project directory.
-
Run the setup script to create a virtual environment and install dependencies:
bash setup_env.sh
-
Activate the virtual environment:
source venv/bin/activate -
Run the main script to generate the nature scene:
python main.py
-
The script will display the nature scene in a pop-up window.
main.py: Contains the code to draw the nature scene.setup_env.sh: Script to set up the virtual environment and install dependencies.requirements.txt: Lists the required Python packages and their versions.
The generated nature scene includes:
- Two triangular mountains
- A circular sun
- A rectangular tree trunk with triangular leaves
- An elliptical cloud
- Ensure that
matplotlibis installed correctly to avoid runtime errors. - You can modify the shapes and styles in
main.pyto customize the scene.