Boingboing had a neat post about an “elect-o-meter” that one could hack up — basically a plastic cup that glows red or blue depending on who is winning the election.
I don’t have the necessary hardware though, so I took the code and made a software version:
The purple will become more blue or more red depending on who is winning, and then when a winner is declared it will turn fully red or blue. Because the purples are very difficult to discern by eye, I print the actual percentages below.
Here’s the source code. Just run it on a Linux machine and it should work.