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 is 1080.

Examples

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