code for drawing particle diagrams in processing