It's called crayon physics, I've wasted the entire afternoon playing around with it.
If the developer could make this work on a treo, I think it would sell like crazy.
I know I would buy a copy.
http://www.kloonigames.com/crayon/