Getting color information about the screen
suggest changewindow.screen is browser-only. colorDepth and pixelDepth are the color and pixel depths in bits per pixel. On many displays both values are 24 or 32.
const pixelDepth = window.screen.pixelDepth,
colorDepth = window.screen.colorDepth;
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents