zoom in and out

code adapted from
http://processing.org/discourse/beta/num_1275508930.html

not exactly what I want (I want to zoom without the background showing
for example)