I realize this won’t update live, but I’ve tried while loops and a few other stuff and nothing seems to work, so I’m having this as the basis to work off from there.
Spent quite a while trying to figure out your code, gave me a few ideas. I’m thinking it should be “while holding down the mouse, the image goes to black and white, and the arrow keys can adjust the threshold value, and it automatically updates” But again I can’t seem to write that without running into issues.
if you test my code example you see it does all now ( mouse wheel AND UP DOWN key )
but the mouse click is a toggle function
hm, i am RIGHTY,
so keep mouse (LEFT) pressed AND operate keyboard Arrow Keys UP DOWN at same time would not be my concept, but why not,
again can start from my code and replace the fenable = ! fenable; with a if else ahm:\ better
mousePressed / mouseReleased structure.