Skip to content

This project involves creating a Hirst painting using extracted colors from an image file (`image.jpg`). The program uses the `colorgram` library to extract 30 colors and then utilizes those colors to create a 10x10 grid of colorful dots resembling a Hirst painting.

License

Notifications You must be signed in to change notification settings

pranjalco/hirst-painting-intermediate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hirst Painting

A Python program that generates a Hirst-style painting by extracting colors from an image using colorgram and creating a 10x10 grid of colorful dots with turtle.

Author

Pranjal Sarnaik

Features

  • Extracts colors from an image using colorgram.
  • Uses turtle to create a 10x10 grid of randomly selected dots.
  • Functions handle positioning and drawing for an organized layout.
  • Separate script to extract and manually transfer colors.
  • Simple and visually appealing artistic output.

Level

Intermediate

Tech Stack

Python | Turtle | Colorgram | Random | GUI-based Programming | Automation | Image Processing

How to Run

  1. Clone the repo:
    git clone https://github.com/pranjalco/hirst-painting-intermediate.git
    
  2. Install the required dependencies:
    pip install colorgram.py
    
  3. Run:
    python app.py
    

Final Output Path:

./screenshots/hirst_painting_final_output.PNG

Created by Pranjal Sarnaik
© 2024. All rights reserved.

About

This project involves creating a Hirst painting using extracted colors from an image file (`image.jpg`). The program uses the `colorgram` library to extract 30 colors and then utilizes those colors to create a 10x10 grid of colorful dots resembling a Hirst painting.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages