OssacipBot

A Twitter bot that generates procedural artwork based on a Dynamical System math formula with Processing 3 and posts to Twitter using Node.js.

8
0
Processing

OssacipBot

I love art. I like math. Random is my type of order.

@OssacipBot - A Twitter bot that generates procedural artwork.

output

Example Gallery

OssacipBot Image OssacipBot Images OssacipBot Image OssacipBot Image OssacipBot Images OssacipBot Image OssacipBot Image OssacipBot Images OssacipBot Image

Fractal Formula

The formula is bases on the notion of mathematical Dynamical Systems. The bot randomizes 6 different variables called a, b, c, d, e, and f. One of these variables is randomly chosen to have its value dynamically manipulated allowing the formula to produce “movement” to the exported GIF. Then 0.5 million points are drawn per frame with the following coordinates where n is the current point:

Math Formula Image

Installation

This is the installation procedure that was followed on a Ubuntu server setup. The procedure however is different on systems like mac OS and Windows.

Clone the repository using git

$ git clone https://github.com/mbrav/OssacipBot.git

Enter into the repository

$ cd OssacipBot

Allow the server setup script to be executable, then run it

$ sudo chmod +x server-setup.sh && ./server-setup.sh

Node.js Installation (depreciated)

NOTE: Add your own twitter API keys to the bot/config.js file. If you have a Twitter account, you can get your Twitter API here.

Now its time to test the bot.
Enter into the bot folder and install dependencies like so:

$ cd bot && npm install

Run the server!

$ node bot.js

Processing 3 Requirements

If the script fails to install the dependencies automatically, the following Processing 3 libraries can be installed manually:

Notes

Troubleshooting

If there are problems with running the bot, leave an issue!

Credits

Bryan Ma - A significant portion of this code was inspired from his bot called greyLandscapeBot which posts on twitter every now and then.

Vincent D. Warmerdam - for providing and inspiring this project with his formula.

a: 0.6267815
b: 1.7023143
c: 0.4992913
d: 3.0277352
e: 1.5243566
f: 1.0872754
morphing: 4  increment: 0.013384947