tsukimi test: imported from processing.org examples