Skip to main content

Introduction

Generative Art is a Python-based project that creates stunning images using mathematical algorithms and randomization. Key features include:
  • Generates unique images using mathematical functions
  • Automatically updates the README.md with a grid layout of generated images
  • Automates workflows for generating and deleting art via GitHub Actions

Built With

How It Works

The project uses Samila to create generative art. GitHub Actions automates image generation on a schedule, storing results in output/images/ and updating the README.md with a grid layout. nektos/act is used to test GitHub Actions workflows locally before pushing to the repository.

Getting Started

1
Clone the repository
2
git clone https://github.com/KarChunT/i-love-i-like-i-build.git
cd i-love-i-like-i-build/projects/generative-art
3
Install dependencies
4
pip install -r requirements.txt
5
Run the script
6
python main.py --help          # show help
python main.py generate-art    # generate art images
python main.py generate-readme # update README with generated images
python main.py delete-art      # delete generated art
7
(Optional) Run GitHub Actions locally
8
Use nektos/act to test the automation workflows without pushing to GitHub:
9
act -W '.github/workflows/delete_art.yaml' -e act/delete-art-payload.json
act -W '.github/workflows/generate_art.yaml' -e act/generate-art-payload.json

Build docs developers (and LLMs) love