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.
size(displayWidth, displayHeight); line(0, 0, width, height);
displayHeight
size()
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Feel free to write us!
Processing is an open project initiated by Ben Fry and Casey Reas. It is developed by a team of contributors around the world.