We are about to switch to a new forum software. Until then we have removed the registration on this forum.
var fingers;
function setup() { createCanvas(1920, 1080); // specify multiple formats for different browsers fingers = createVideo(['assets/glen.mov']); //fingers.hide(); // by default video shows up in separate dom // element. hide it and draw it to the canvas // instead fingers.loop(); }
function draw() { background(150); image(fingers,10,10); // draw the video frame to canvas //filter('GRAY'); image(fingers,150,150); // draw a second copy to canvas }
Answers
https://forum.Processing.org/two/discussion/15473/readme-how-to-format-code-and-text
Maybe use position() in place of hide(): :-/
https://p5js.org/reference/#/p5.Element/position
Many thanks for your swift answer and for the formatting information. I tried out the code and it worked!!. (I made some minor adjustments to it.) Thank you so much.
Please find below the working code: