const ctx = VARS.canvas.getContext("2d");
const video = document.createElement("video");
video.src = "media/yellow_fish.mp4";
const video1 = document.createElement("video");
video1.src = "media/small_video.mp4";
video.addEventListener('loadeddata', function() {
video.muted = true;
video.loop = true;
video.play(); // start playing
video1.muted = true;
video1.loop = true;
video1.play(); // start playing
update(); // start rendering
});
function update() {
ctx.drawImage(video, 0, 0, 320, 180);
ctx.drawImage(video1, 320, 0, 320, 180);
ctx.drawImage(video1, 0, 180, 320, 180);
ctx.drawImage(video, 320, 180, 320, 180);
v3d.puzzles.canvasTextures.myCanvas.needsUpdate = true;
requestAnimationFrame(update);
}
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.