xxxxxxxxxx
14
// https://stackoverflow.com/questions/72896761/directly-bind-function-to-createslider-slider-in-p5-without-using-temporary
var glob = 5;
function setup() {
createCanvas(400, 400);
bob = createSlider(1,10,5).input(function(e) { glob = this.value() })
}
function draw() {
background(220);
text(glob,50,50);
}