xxxxxxxxxx
// let a = createA
let button;
let a;
let inp;
let capture
function setup(){
createCanvas(windowWidth, windowWidth);
// button = createButton('click me')
// button.position(200,200)
// button.mousePressed(changeBG)
button = createButton('VERALYN WEN');
button.position(30, 50)
button.mousePressed(gotolink)
a = createA('https://veralynwen.com', 'veralyn wen')
a.position(150,50);
inp = createInput('type here')
inp.position(250, 50);
capture = createCapture(VIDEO)
capture.hide();
}
function draw() {
image(capture, 0,0)
// filter(INVERT);
}
function gotolink(){
window.open ('https://veralynwen.com/')
}
function changeBG(){
filter(INVERT)
//background(random(255),random(255),random(255));
// window.open
}