GUI/Maximum window dimensions: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: added syntax colouring the hard way)
(Added Processing implementation)
Line 893: Line 893:
<pre>Width: 1010
<pre>Width: 1010
Height: 735</pre>
Height: 735</pre>

=={{header|Processing}}==

fullScreen() is the recommended approach to draw a window covering the entire screen from Processing 3.0+ onwards. The implementation below first creates a window and then prints the dimensions onto the canvas.

<lang Processing>
//Aamrun, 26th June 2022

fullScreen();
fill(0);
textSize(50);
text("Screen Height : " + str(height), 100, 100);
text("Screen Width : " + str(width), 100, 200);
</lang>


=={{header|PureBasic}}==
=={{header|PureBasic}}==