PixelatedCanvas.py is my Python pet-project that generates stunning pixel backgrounds using various rules and sizes. It's like having a virtual art studio where you can unleash your creativity and create mesmerizing pixel masterpieces! πβ¨
- π Generate pixel backgrounds with different rules and sizes
- π¨ Customize the number of images to generate
- π Specify the desired size of the generated images
- πΌοΈ Save the generated images in the
output
directory - π₯ Create GIFs from the generated images using
gif_script.py
- π Easy-to-use graphical user interface (GUI) for seamless interaction
- Clone the repository:
git clone https://github.com/your-username/PixelatedCanvas.py.git
- Install the required dependencies:
pip install -r requirements.txt
- Run the
gui.py
script:
python gui.py
- Select the desired rule, size, and number of images to generate using the GUI.
- Click the "Generate Images" button to start the image generation process.
- The generated images will be saved in the
output
directory. - To create a GIF from the generated images, run the
gif_script.py
script:
python gif_script.py
- The resulting GIF will be saved in the
gifs
directory.
- Alternatively, you can manually run script.py by uncommenting the last part of the code and specifying different settings:
- Open
script.py
in a text editor. - Uncomment the last part of the code (e.g., remove the # symbols).
- Run the last
for
look with your desired settings, such as the number of images, width, height, and rule index. - Save the changes and run
script.py
directly:python script.py
. This allows you to generate a large number of images in a batch, for example, generating 1,000,000 images in a row with specific sizes and rules.
Note: Be cautious when generating a large number of images, as it may take a considerable amount of time and consume significant system resources but on average one image betwen 10-30 kB at max.
Note: GIF generation using gif_script.py can take a long time, especially for a large number of images. If you encounter issues or find the process too time-consuming, you can alternatively use different scripts or websites for GIF creation, such as https://ezgif.com/maker, which provides an online tool for creating GIFs from a set of images with multiple settings.
Here are some examples of the pixel backgrounds generated by PixelatedCanvas.py:
Contributions are welcome! If you have any ideas, suggestions, or improvements, please open an issue or submit a pull request. Let's make PixelatedCanvas.py even more awesome together! π€π‘
This project is licensed under the MIT License.
- The project uses the Pillow library for image manipulation.
- The GUI is built using the Tkinter library.
Grab your virtual paintbrush and let PixelatedCanvas.py be your guide to creating stunning pixel backgrounds! Explore different rules, customize sizes, and let your creativity run wild! ππ
Happy pixel art creation! π¨ποΈ