Abstract Art Bot
Overview
This Twitter bot runs on a Raspberry Pi and generates 2D digital images every hour with colors that change based on the time of day.
Technical Details
A random number of ovals, rectangles, polygons, lines, and arcs are plotted on a tkinter canvas using python. The sizes and colors also generated randomly. However, colors are restricted to certain values based on the time of day. There are dark, light, grayscale, and normal color values that are chosen from.
After the image is generated, a new thread is created to save a screenshot using PyAutoGUI. From there, the image gets uploaded and a status gets created with Twython.
See It In Action
Technologies Used
- Python
- tkinter
- PyAutoGUI
- Twython
- Linux
- Cron
View the Source Code on GitHub