improve animation (in processing)