probably silly question but is this possible or not in p5js?
function setup() {
myButton.mousePressed(toggleVideo(1)); //This toggleVideo works well without argument
}
function toggleVideo(v) {
blablabla[v].loop();
}
Many thanks!
probably silly question but is this possible or not in p5js?
function setup() {
myButton.mousePressed(toggleVideo(1)); //This toggleVideo works well without argument
}
function toggleVideo(v) {
blablabla[v].loop();
}
Many thanks!