~/projects/skribbler

SOFTWARE2023

Skribbler

A Selenium and PyAutoGUI bot that plays skribbl.io by downloading a reference image for the given word and drawing an approximation of it on the canvas.

TIMELINE
Apr 2023
TEAM
Solo
CONTEXT
Personal project
The Great Wave and three ways the bot draws it: traced edges, layered color rectangles, and straight lines.

Overview

Skribbler automates drawing in skribbl.io. When it is the bot’s turn, it downloads a reference image matching the round’s prompt word, processes it into a reduced color palette, and reproduces it on the in-browser canvas by drawing colored rectangles with simulated mouse drags.

Features

  • Automatically searches for and downloads a reference image for the prompt word
  • Quantizes the reference image down to a small set of representative colors
  • Scales and positions the drawing to fit the game canvas, accounting for aspect ratio
  • Switches the in-game color picker by setting RGB values before each shape
  • Draws the image as a series of filled rectangles using simulated drag gestures
  • Separate coordinate presets for the web client versus the Discord activity version