If you are just starting off with processing they have there own tutorials on their site https://processing.org/tutorials/