I am using a simple Pomodoro timer but I have no sound/speakers, and so I’d like to signal the end of the timer by simply blanking the screen with a specified color, then toggling it a few times with another color. As if I made my monitor a left-turn car signal. How do I control the monitor like that? Is there some win32 code for this?
I’m familiar with Java, and much less with c# or C++

I’m not sure what is the motive to control the whole screen. Maybe more appropriate would be to show a notification in the system tray.
Anyhow, using Java you could popup a
JFramein full screen mode. Change its background using a timer a couple of times and then close it. Here is a simplified example that demos something similar :