this is a pretty basic bot I made that translates an image to a specific size and matches the colours to a 64-colour palette and then emulates mouse movements to draw the image on a gartic phone session.
Install the latest version of Python 3
python -m venv venv
source venv/bin/activate
pip install pynput Pillow numpy
WARNING: pynput breaks in Wayland, use X11 instead
First, make sure you're already in a Gartic Phone session
source venv/bin/activate
python colors.py
Switch to the browser window without using your mouse (crucial)
click the box under the colour palette
click the text with the hex code
click the top left corner of the canvas (draw area)
click the bottom right corner of the canvas (draw area)
now click anywhere on the screen and after 5 seconds it will start drawing!!! wait till it's done
The code in this repository was tested on Cinnamon (X11) - Arch Linux, it is subject to break on any other Operating Systems or DEs
USE AT YOUR OWN RISK

