Last year we had a competition in the Netherlands were people could submit digital recreations in code of Mondrian's 'Victory Boogie Woogie'. Quite a few interesting submissions over here: http://elegant.setup.nl/#inzendingen
I did something quite similar once, though with canvas instead of tables: http://www.dl.unospace.net/mondrian/. I think part of the fun after making a simulation like this is to get silly with the parameters, so crank those sliders but be prepared for your browser to lock up :)
Past year there's been a competition organized by Setup where people could enter algorithms for generating art like Mondrian: http://elegant.setup.nl/ (It's in Dutch though..)
Hmm, maybe use something like a fractal algorithm? At least Mondrian is about the disposition of weights and space as it may be found in natural grown structures, like trees ...
http://acdn.architizer.com/thumbnails-PRODUCTION/ac/4f/ac4f2...
Very different from the stuff that he's famous for.