Function devicePixelRatio

  • Returns the pixel ratio of the current device, as a value from 0 to 1.

    Returns number