This is the first version of my Peggy 2.0 simulator. Peggy 2.0 is a piece of hardware that lets you mess around with brightly coloured LEDs and mesmerise small children. You can see a video of it on youtube.
Before I get around to buying one and soldering the damn thing together, I thought it might be handy to try out some demos first, using the magic of Processing.
The aim is to produce a reusable set of Peggy classes that anyone can use to try out ideas.
- In good MVC fashion the data and display are kept separate, so you can plug in your own display
- The display is basic but resizes to any x:y cleanly
- Next steps: (1) make it faster (2) more fancy demos with the LEDs (3) more realistic LED rendering with ‘bloom’, so it actually looks like the video
Hit ‘Continue’ to see a basic demo with a bunch of sine-wave bars going in and out of phase.
This one is non-interactive I’m afraid…
Source code: peggySim.pde
If you want to use the Peggy classes, please leave a comment and link back to this post. I’ll be updating them over time. Cheers!
#1 by JennyJenny on October 24, 2008 - 4:42 am
Quote
This is what I was talking about!
#2 by air on December 5, 2008 - 5:38 pm
Quote
Wow, this runs like shit on Java 6. I need to update this.
#3 by air on December 5, 2008 - 5:39 pm
Quote
Ah but on reload it’s fine. Never mind!
#4 by Ryan on October 8, 2009 - 6:14 am
Quote
Useless App #51
16 x 16 pixels (squares)
7 colours (rainbow)
Program program to produce outcome of all possibilities, instantly as picture (16 x 16 square/coloured)
1792 total
—–
Program: Random Lyric Maker
Song broken into lines then syllables / Program creates word and syllable structure from count of song.
NON-function