A Number variable that stores the width of the screen display.
displayWidth is useful for running full-screen programs. Its value depends on the current pixelDensity().
Note: The actual screen width can be computed as displayWidth * pixelDensity().
Ejemplos
Notice any errors or typos? Please let us know. Please feel free to edit src/core/environment.js and open a pull request!
Referencias Relacionadas
deltaTime
A Number variable that tracks the number of milliseconds it took to draw the last frame.
describeElement
Creates a screen reader-accessible description of elements in the canvas.
displayDensity
Returns the display's current pixel density.
displayHeight
A Number variable that stores the height of the screen display.