// Processing code by Etienne Jacob // motion blur template by beesandbombs, explanation/article: https://bleuje.com/tutorial6/ // See the license information at the end of this file. // View the rendered result at: https://bleuje.com/gifanimationsite/single/spiralwave/ ////////////////////////////////////////////////////////////////////////////// // Start of template int[][] result; // pixel colors buffer for motion blur float t; // time global variable in [0,1[ float c; // other global variable for testing things, controlled by mouse void draw() { if (!recording) // test mode... { t = (mouseX*1.3/width)%1; c = mouseY*1.0/height; if (mousePressed) println(c); draw_(); } else // render mode... { for (int i=0; i