Skip to content

NotCookey/AbstractArt-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Abstract Art Generator

abstract_art (6)

This project can generate abstract art images consisting of geometric shapes on a gradient background.

from AbstractArt import AbstractArtGenerator

Initialize the class

generator = AbstractArtGenerator(size=(1920, 1080), num_shapes=500)

Generate the image

generator.generate()

Save the image

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!