pendulum array in processing