Skip to content

Instantly share code, notes, and snippets.

View gcorallo's full-sized avatar

guido c gcorallo

  • Buenos Aires, Argentina
View GitHub Profile
anonymous
anonymous / gist:7200596
Created October 28, 2013 17:01
A little motion blur effect for processing.
/* passable motion blur effect using frame blending
* basically move your 'draw()' into 'sample()', time runs from 0 to 1
* by dave
* http://beesandbombs.tumblr.com
*/
int samplesPerFrame = 32; // more is better but slower. 32 is enough probably
int numFrames = 48;
float shutterAngle = 5.0; // this should be between 0 and 1 realistically. exaggerated for effect here
int[][] result;