play & generate patterns and graphics with this code