Get the code:
You need to put your image at the same folder as the code and rename the image to res.jpg or res.png, once you run the code simply press enter to start drawing or alternatively you can type “sketch” without the quotation marks of course. Once you press enter the code will prepare the image and give you 3 seconds to adjust your mouse position. The mouse position will be the top left corner of the drawing. Please don’t move the cursor or do anything on your computer while the code is drawing the image. Keep in mind that the drawing will be delayed for other users because the code draws so many dots.
Please open up your terminal in the same folder as the main.py and type
pip install -r requirements.txt
to install the required libraries
Leave a Reply