Processing.js in HTML making small design pattern