System variable that stores the width of the entire screen display.
1def setup(): 2 py5.size(py5.display_width, py5.display_height) 3 py5.line(0, 0, py5.width, py5.height)
System variable that stores the width of the entire screen display. This can be used to run a full-screen program on any display size, but calling full_screen() is usually a better choice.
Underlying Processing field: displayWidth
Updated on November 12, 2021 11:30:58am UTC