I'm looking for a way to produce the output of my program in a way that the output appears on the live screen (output is typically a color filled shape) instead of appearing on a new window like it does for most Python programs.
I've attached an example of what I'm trying to achieve where only a part of the screen had its colors inverted (and will remain so as long as the script runs) and the rest remained as it is. NOTE:I've made the example using Photoshop.
I've tried PIL,OpenCV, Mss,curses.....but all these modules produce an output on a separate window.
Is what I'm trying to achieve even possible? If not with Python is it possible with C++? or is this something beyond the abilities of a programming language and needs to be done at the Operating System level itself?