This project can generate abstract art images consisting of geometric shapes on a gradient background.
from AbstractArt import AbstractArtGenerator
generator = AbstractArtGenerator(size=(1920, 1080), num_shapes=500)
generator.generate()
generator.save("image.png")
Parameters:
size - Size of the generated image in (width, height)
num_shapes - Number of geometric shapes to draw
Shapes:
- Circles
- Triangles
- Squares
- Leafs
- Stars
- Droplets
Concurrency:
The shape drawing is done concurrently using a ThreadPoolExecutor to
speed up the generation process.
Requirements:
- PIL
- concurrent.futures
Usage example:
generator = AbstractArtGenerator(size=(1920, 1080))
generator.generate()
generator.save("abstract.png")
Hope this helps!