< I am pretty new to coding, I am trying to apply different seriously.js effects on different arrays of videos, I am not even able to make the program loop through the videos in the array
/>
let vid1= ‘footb1.mp4’;
let vid2= ‘footb3.mp4’;
let vid3= ‘futball1.mp4’;
let vid4 =‘Mfash.mp4’;
let vid5= ‘fas4.mp4’;
let vid6 = ‘rfaash1.mp4’;
let vid7 = ‘futball2.mp4’;
let vid8 = ‘footb5.mp4’;
let vid9 = ‘footb4.mp4’;
let vid10 = ‘fash3.mp4’;
let vid11 = ‘fas1.mp4’;
let vid12 = ‘footb2.mp4’;
a=[];
a = [vid1,vid2,vid3,vid4,vid5,vid6,vid7,vid8,vid9,vid10,vid11,vid12];
//mmv
b = [];
b = [vid1,vid2,vid3];
//mav
c=[];
c = [vid7,vid8];
//mev
d = [];
d = [vid9,vid12];
//wav
e = [];
e=[vid4,vid5,vid6];
//wev
f=[];
f=[vid10,vid11];
let z;let p;
let q;let w;let r;let y;
function preload(){
for (var i = 0;i<a.lenght;i++){
z= createVideo(a[i]);
}
for (var j = 0; j<b.lenght;j++){
q= createVideo(b[j]);
}
for (var k = 0; k<c.lenght;k++){
w= createVideo(c[j]);
}
for (var l = 0; l<d.lenght;l++){
r= createVideo(d[l]);
}
for (var x = 0; x<e.lenght;x++){
y= createVideo(e[x]);
}
for (var t = 0; t<f.lenght;t++){
p= createVideo(f[t]);
}
}
function setup() {
createCanvas(640,480, WEBGL);
}
function draw() {
background(220);
}