Haha, after seeing Blue Then's scripts it's rather tempting. It'd take some reading up on Processing but the Java doesn't look too difficult. (I'm assuming .pde file extension is Processing that is. Lol)
The game never ends, so don't expect a "You Win!" screen any time. Also a note: the applet was originally 640x480. It should work fine in any size though.