xxxxxxxxxx
let capture;
let crown;
function preload(){
crown = loadImage ('crown.gif')
}
function setup() {
createCanvas(600,600);
capture = createCapture (VIDEO)
capture.hide();
imageMode(CENTER);
}
function draw() {
background(220);
filter(GRAY);
imageMode(CENTER)
tint(217, 37, 181);
image(capture, 300, 300, width, width * capture.height / capture.width);
image(crown,200,100,200,200*crown.width/crown.height);
}