[ Web Proxy ]
URL:
Viewing: https://processing.org/reference/displayWidth.html [Back]  [Original]

displayWidth / Reference / Processing.org
Skip to main content

Name

displayWidth

Description

System variable that stores the width of the computer screen. For example, if the current screen resolution is 1920x1080, displayWidth is 1920 and displayHeight is1080.

Examples

  • Copy
    size(displayWidth, displayHeight);
    line(0, 0, width, height);
    

Web Proxy Viewer  |  New URL  |  Original Page