Upped Processing.js to 1.3.6, plus fixes to examples for 1.3.6

This commit is contained in:
fjenett
2011-11-06 11:44:43 +00:00
parent 40a2e4f0cc
commit f8c43eb3a6
6 changed files with 5625 additions and 15197 deletions
@@ -20,6 +20,13 @@ function initVideos ( sketch ) {
video['loop'] = true; // as "loop" is not supported by many browsers
// extending our HTMLVideoElement object to return a PImage
video['getFrame'] = function () {
var img = new sketch.PImage;
img.fromHTMLImageData(video);
return img;
};
// similar to tryFindSketch this creates a loop that
// continues until the video becomes ready.
(function( s, v ){