Skip to content

This is my Generative Art pet-project for generating pixel backgrounds based on different rules and sizes

License

Notifications You must be signed in to change notification settings

samarskii/PixaletedCanvas.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PixelatedCanvas.py πŸŽ¨πŸ–ŒοΈ

Python Version Pillow Version License

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! πŸŽ‰βœ¨

Features

  • 🌈 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

Installation

  1. Clone the repository:
  • git clone https://github.com/your-username/PixelatedCanvas.py.git
  1. Install the required dependencies:
  • pip install -r requirements.txt

Usage

  1. Run the gui.py script:
  • python gui.py
  1. Select the desired rule, size, and number of images to generate using the GUI.
  2. Click the "Generate Images" button to start the image generation process.
  3. The generated images will be saved in the output directory.
  4. 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.
  1. 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.

Showcase

Here are some examples of the pixel backgrounds generated by PixelatedCanvas.py:

Rule 1: Cosmic Explosion πŸ’₯🌌

Rule 2: Retro Vibes πŸ•ΉοΈπŸ“Ό

Rule 3: Neon Dreams πŸŒƒπŸŒ 

Rule 4: Pixelated Serenity πŸƒπŸŒΏ

Rule 5: Electric Chaos βš‘πŸŽ‡

Rule 6: Monochromatic Elegance πŸ–ŒοΈπŸŽ¨

Rule 7: Geometric Harmony πŸ“πŸ”·

Contributing

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! πŸ€πŸ’‘

License

This project is licensed under the MIT License.

Acknowledgements

  • The project uses the Pillow library for image manipulation.
  • The GUI is built using the Tkinter library.

Let's Create Pixel Magic! 🎨✨

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! πŸŽ¨πŸ–ŒοΈ

About

This is my Generative Art pet-project for generating pixel backgrounds based on different rules and sizes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages