xxxxxxxxxx
15
function setup() {
createCanvas(windowWidth, windowHeight);
buttonGallery = createButton("Gallery");
buttonGallery.position(windowWidth / 2, windowHeight / 2);
buttonGallery.mousePressed(goToGallery);
}
function draw() {
background(220);
}
function goToGallery() {
window.open("https://sketchfab.com/models/f518b961f41049ca8ec1378993c2a3d8/embed","_self");
}