Option to sample a ~20 pixel border of the main screen to give a better representation of the background.
For example, If you had a video of someone on video in the middle of the screen with a green background. I assume that you would want the average to be green and not the brown / black of the person?
In #3:
"I'll add it in and see how it goes, but I'm pretty sure that it won't look great in practice without smoothing/averaging the colour output over time. You're likely to get flickers and flashes of colour as the camera pans etc, I reckon."
You could have a threshold for the hex values of the colours so you don't get these flickers.
Option to sample a ~20 pixel border of the main screen to give a better representation of the background.
For example, If you had a video of someone on video in the middle of the screen with a green background. I assume that you would want the average to be green and not the brown / black of the person?
In #3: "I'll add it in and see how it goes, but I'm pretty sure that it won't look great in practice without smoothing/averaging the colour output over time. You're likely to get flickers and flashes of colour as the camera pans etc, I reckon."
You could have a threshold for the hex values of the colours so you don't get these flickers.