basically what the title says - for debugging purpose I want to get the version as a constant variable. I checked each variable in “this” but didn’t get anything relevant matches /version/i
function setup() {
createCanvas(400, 400);
console.log(Object.keys(this).filter(s=>s.match(/version/i)))
}
function draw() {
background(220);
}
Congrats @micuat I see you have got it implemented in p5 1.3.1 as VERSION. Working well for me. That’s taken a long time, the p5 team didn’t see it as important.