mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Upped Processing.js to 1.3.6, plus fixes to examples for 1.3.6
This commit is contained in:
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user