Drawing app using processing.js to draw triangles on canvas