Regarding pixel manipulation from live camera feed

<!-- Tips: Format your code with </ I am trying to map image pixels from live camera into a larger canvas but whenever i am doing that i am only getting a black canvas Can anybody suggest whr I am going wrong in my algorithm I must confess the algorithm is followed from a tutorial the code is submitted below please advise: let sizing=16; function setup() { createCanvas(640,480); video=createCapture(VIDEO); video.size(width/sizing,height/sizing); } function draw() { background(220); video.loadPixels(); for(var y=0;y<video.height;y++){ for(var x=0;x