Visual algorithms using processing framework (java)