The Colorful Julia Twitter Bot

visualmov

Ryan

Posted on December 24, 2019

The Colorful Julia Twitter Bot

A few months ago, I had the idea to make a Twitter bot. However I didn't have any good ideas for a bot at the time, so I put the project on hold. That is until a little over a week ago, where I developed an idea and started working on it. Now it's finished!

Colorful Julia is a Twitter bot that tweets random Julia sets with different colorization. Information about the generated image is also included, such as the maximum amount of iterations, value for c, and the 'color mode'.

Both writing the bot and hosting it was an incredible learning experience for me. Feel free to make your own bot from my code if you wish.

Here's the link to the source code:

GitHub logo Visual-mov / Colorful-Julia

A Twitter bot that tweets random Julia sets.

Colorful Julia Twitter Bot

Julia set

Colorful Julia is a Twitter bot that tweets random Julia sets. Along with the image itself, the tweet also includes information about the rendered Julia set. Such as the maximum amount of iterations, value of c, and the colorization method. Colorful Julia uses the tweepy wrapper to communicate with the Twitter API.

More information about Julia sets

Installation

Clone repo:

~$ git clone https://github.com/Visual-mov/Colorful-Julia

Install requirements:

~$ pip3 install -r requirements.txt

Running

Run main script:

~$ python3 colorful_julia.py [--date_img] [--no_tweet] [--path p]

'--path p' - Give different path to save images. Default path is ./saves

'--date_img' - Save each Julia set image with a unique date and time code instead of overwriting previous image.

'--no_tweet' - Will not tweet created image. No keys file is needed as well.

Location for API keys

If you intend for the script to tweet the created image, a file containing…

💖 💪 🙅 🚩
visualmov
Ryan

Posted on December 24, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related