How to make the entirety of the game screen colorless(including windows, text, etc.)

I am working on making a special enemy who will turn the scene entirely colorless.
I try to use screen tint and filter plugins, but they usually only change the map and characters, not the pictures and windows, etc.
But I've managed to get all the contents of the screen to show inverse colors before using a script given by a friend.(document.getElementById('gameCanvas').style.filter='invert(2)';)
so I'm wondering if there's also a script that can just make the saturation of the screen go to 0?

:LZSsmile:
document.getElementById('gameCanvas').style.filter='grayscale()';

This should do.
document.getElementById('gameCanvas').style.filter='grayscale()';

This should do.
Thank you. You've helped me a lot in the last two days! I noticed that there is a “grayscale” replacement here, and it looks like replacing the word in this place can make a difference. I was wondering if there is any basis or list for these words?
I was wondering if there is any basis or list for these words?
heres where i saw it

heres where i saw it

Thanks!I am checking them one by one.It would help.

document.getElementById('gameCanvas').style.filter='grayscale()';

This should do.
I wonder is it possible to use a similar script to change the color of a picture (like Picture 1)? What would it look like if the target is a specific picture?
You don't need to use a script because there is a tint picture command.
You don't need to use a script because there is a tint picture command.
I know. As a matter of fact, yesterday I tried out all the vocabulary lists another person responded to, and I saw that there were also effects for hue, brightness, blur, etc., so I'd like to use them on a picture, that's why I'm asking.😊
They are not the same.
Picture is not part of the web page, it is displayed using webgl so normally you can't use css filters.
You can use PIXI filters though, using this plugin:
They are not the same.
Picture is not part of the web page, it is displayed using webgl so normally you can't use css filters.
You can use PIXI filters though, using this plugin:
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-the-entirety-of-the-game-screen-colorless-including-windows-text-etc.175997/