How to write a KWin effect?

Sorry if this is the wrong subreddit.
I use Arch, KDE Plasma 6, Wayland on HP Omen 16 with 4060. My monitor has a built-in blue light filter which i cannot turn off (eye-safe). i used to decrease green and red ratios on windows to reverse that effect but that seems not possible on wayland, or KDE. İ tried ICC profiles but they only fix it slightly, I cannot calibrate color outputs with that completely. gammastep kinda stuff also does not work.

So, I thought writing a kwin effect would solve my problem(i asked gemini is not there a solution to fix this with some kind of coding) but I am too noob to do that. I found those documents online but still cannot figure it out. Appreciate any kinds of help.

https://develop.kde.org/docs/plasma/kwin/

https://develop.kde.org/docs/plasma/kwin/api/

Bad hardware is a channel to support for any OS/DE.

KWin might have a color ratio setting at some point. An ICC profile could mimic this and KWin does support it.

But writing an KWin effect is probably too complicated code for someone that is “too noob”.

LLM probably can’t help here.

I tried many ratios on icc profiles but they do not fix my issue %100. they only slightly change my screen. and probably you’re right about being too complicated but i cant find any other ways to solve it and i am kinda hyped about diy aspect of linux so here i am. thx for your answer