CodingTrain / CodingTrain/Suggestion-Box
problem usi video.size() function when creating software mirrors in p5.js
Open
- Dominant language
- No language data
- Stars
- 570
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
does video.size() function doesn’t work properly for pixel manipulation.
the moment i am using it I am getting a black screen in the canvas though the video is running in the browser
I am sending the code:
let video;
function setup() {
createCanvas(320, 240);
video=createCapture(VIDEO);
pixelDensity(1);
video.size(320,240);
}
function draw() {
background(220);
loadPixels();
video.loadPixels();
for(var y=0;y
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.