close-pixelate icon indicating copy to clipboard operation
close-pixelate copied to clipboard

Added support for Pixelate to be used on video also.

Open netgfx opened this issue 13 years ago • 2 comments

Pixelate also supports video now, added an example. new options are: video:boolean, videoW:number, videoH:number and the selected object is the video it self. ex. var myPixelation = new ClosePixelation( v, [ { resolution : 8,shape:'circle', video:true, videoW:w, videoH:h } ]);

Script also contains extra function for requestAnimationFrame

Also added an example that can showcase this functionality.

netgfx avatar Mar 14 '13 08:03 netgfx

Whoa! Thanks for the contribution. I'll have to take a deeper look when I get a better chance.

But my initial thinking is that Close Pixelate should work on still images only. This keeps the spec focused and clean. If you want to use it for movies, then you can write a little per-frame function to do so.

desandro avatar Mar 16 '13 16:03 desandro

Yes of course that makes sense too, I thought to generalize the lib for various media types. I have also put together a little tutorial here: http://nightlycoding.com/index.php/2013/03/html5-video-on-canvas-pixel-manipulation/ and gave credit.

Anyhow thanks for taking a look.

netgfx avatar Mar 16 '13 16:03 netgfx