Experiment: Sentiment Blocks

Experiment #1

What originally started as a "playing around with the canvas" session to create an interesting page background effect ended up with this bit of fun. Probably for the best, because it's far to distracting as a page background.

The concept is quite simple: stream in tweets to a sentiment algorithm (I wrote about a very basic version of this here) and display them on a grid - red for negative, green for positive.

Each "pixel" then fades to black, fade time is based on how active the stream is to help keep the grid filled up even if there aren't many tweets. Once a pixel is black, the next tweet is popped off the stack and it fades in again.

Below is 15 seconds of #trump (receiving ~250 tweets/sec):

I could watch this for hours, but maybe that's just me.