Method: Browser::Screen#depth

Defined in:
opal/browser/screen.rb

#depthDepth (readonly)

Returns the screen depth.

Returns:

  • (Depth)

    the screen depth



50
51
52
# File 'opal/browser/screen.rb', line 50

def depth
  Depth.new(`#@native.colorDepth`, `#@native.pixelDepth`)
end