Pattern recognition project written in Processing