As a part of one of our university modules we have a video manipulation processing assignment. As my assignment I have chosen to create a simple RGB color corrector for a webcam stream. I have created most of my code, but I'm struggling with connecting the mapped sliders I have created to the loop that changes the colors (Excuse my primitive language but I'm quite a novice when it comes to Processing). Basically, I have been following the same procedure as if I was dealing with an image, and not surprisingly, this doesn't work with a video. I've looked in the libraries and got some pieces of code here and there but it doesn't seem to be working. Below this I'll post the specific part of the code which seems to be wrong, as well as the code in it's entirety.
I'm pretty sure I'm quite far away from where I want to be with this code, so any help would be greatly appreciated!