Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 522 Bytes

get-color-depth.md

File metadata and controls

9 lines (5 loc) · 522 Bytes

Get color depth of screen

To get the color depth of the screen in JavaScript, use the screen.colorDepth property.

Per the specification:

The colorDepth and pixelDepth attributes should return the number of bits allocated to colors for a pixel in the output device, excluding the alpha channel.

Read the docs. Read about color depth.