Skip to content

A python program that generates abstract art with variety of shapes, styles and randomization using pygame.

License

Notifications You must be signed in to change notification settings

Auto-bot-Channel/Abstract-Art-Generator

 
 

Repository files navigation

Abstract Art Generator

Summary: A python program that generates abstract art with variety of styles, shapes, adjustable options and randomization, using pygame.

Program Info

Python version: 3.7.6, Packages used: pygame, pygame_gui, tkinter

In "Abstract Art Generator", we have two layers to work on. Each of these layers have 4 different adjustable options.
These are: Style, Shape, Complexity and Size
Also for each artwork, there are 20 unique color palettes to choose from. These color palettes have 4 different colors.
Before any shapes are drawn, one color from the color palette is chosen to be the background color, rest are left for shape colors.

Style Options

There are 7 style options, these are:

  • Chaotic: This is the most randomized option.
  • Striped Horizontal: With this layer style the shapes are forced to roughly line up on horizontal lines.
  • Striped Vertical: Same as the horizontal style but the shapes line up on vertical lines this time.
  • Mosaic: Whatever the shape is, they cover the screen with same amount of spacing between them.
  • Cornered: Shapes are forced to be drawn roughly on the corners.
  • Centered: Shapes are forced to be drawn roughlt on the center.
  • Empty: This option is there to make one shape art possible. Sometimes one shape is enough for an artwork.

Shape Options

There are 8 shapes to draw on your art, these are:
Lines, Circles, Sqaures, Hollow Polygons, Filled Polygons, Dots, Curves and Rings
The shapes are pretty self explanatory.

Slider Options

For the slider options, we have Complexity and Size.
Complexity: This corresponds to how complex the layer will be. More shapes, more randomization. This option is more absolute.
Size: This option changes the maximum size that the shapes can have, for that specific layer. This option is more flexible.

  • Note: While complexity works with all layer styles, size has an exception. For mosaic style, because the spacing is calculated by how many shapes has to be drawn, size option doesn't affect shapes with that style.

Extra

I have included an examples folder, and inside it there are 5 example abstract artworks. Just to show what can be done. And there is also an info.txt file in the folder that acts as a guide to create the same artworks yourself.
Make sure to have all the packages required installed, and keep the files in the same folder.
It might take a few seconds to fully run for the first time use. Use command prompt to run the .py file like this:

python art_generator.py

About

A python program that generates abstract art with variety of shapes, styles and randomization using pygame.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%