GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Sikta2002/Hirst-Painting-Project: Implementation of Damien Hirst's random canvas spot painting 🌈 using python with the help of turtle module.

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
Image_0.png
Image_0.png
 
 
Image_1.png
Image_1.png
 
 
Image_2.png
Image_2.png
 
 
Image_3.png
Image_3.png
 
 
README.md
README.md
 
 
image.jpg
image.jpg
 
 
main.py
main.py
 
 

Repository files navigation

The Hirst Painting Project

This is a recreation of Damien Hirst's Spot Painting using Python with the help of the Turtle module.

What are we upto ?🤔

We are going to create this colourful piece of art which sold for more than half a million pounds ! (25 random colored dots) just by using the well-known turtle module present in the python library.

Prerequisites 🖍️

  • Familiar with the Turtle module (Don't know? Internet is the savior. Trust me it's easy 😉).

  • Installation of the Colorgram Package (We need to make our painting as colorful as Damien Hirst's 🌈).

  • Basic comprehension of the RGB color system 🧮.

Let's Paint !

Task - 1 🖌️:

  • We start by downloading a spot painting image, which we use to extract the colors using the colorgram package.

  • We run a for loop that taps into each of the colors, and extracts the red(r), green(g) and blue(b) colors.

  • Further we initiate a tuple that holds (r, g, b) and append the tuples into an empty list.

  • Lastly, we copy & paste the entire output list into our main.py and comment out the prior code (we don't need to run the computation every single time when our goal is to just extract the colors).

Beware of the Whites ! ⚪

Now while we are using our color_list, there are chances that the first few tuples lead to white (the background color from the image), which might be unnecessary.We can go ahead and test our color tuples & remove the desired.

Task - 2 🖌️:

  • We intend on drawing a spot painting 10 X 10 in size, with each dot of size 20 and spaced apart by 50 paces.

  • We use the dot() to draw the dots and colormode(255) to access and generate random RGB colors.


  • Inorder to prevent the turtle to start from the center and move out of the frame, we play around with setheading() & forward() to move the turtle to the intended position.
  • We then add more codes to the for loop to make the turtle move to the next row and start from the front & keep moving further drawing dots.

  • Lastly, we can increase the speed of our turtle by using speed(), make the forward lines vanish by using penup() (this doesn't affect our dots!) and make the turtle invisible by using hideturtle().

Hooray, our painting is ready !

Things we learnt 🕮️

  • How amazing the turtle module is! 🐢

  • How expensive contemporary art can be! 😝

🦄 Thanks for Visiting! 🦄

About

Implementation of Damien Hirst's random canvas spot painting 🌈 using python with the help of turtle module.

Topics

colorcolorgramhirst-paintingpaintingpythonspotpaintingturtleturtle-graphics

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.