For the record, I have now tested the 2/27 update on all the browsers to which I have access.
OS X Mavericks: Works fine in Safari, Chrome, Opera, and Firefox.
Windows 8: Works in Internet Explorer 11, Chrome, Opera and Firefox (but see below).
Windows XP: Works in Chrome, Opera, and Firefox. Of course IE 8 doesn’t even support the Canvas element, so it doesn't work in that.
Windows 8 and XP were running on a Mac using VMware Fusion 5.
In order to get this working in IE 11 in Windows 8, I had to open up p5.js v0.4.2 and add
else if (document.msExitFullscreen) {
document.msExitFullscreen();
}
near the end of function exitFullscreen() -- after the closing curly bracket on line 2244. I let the developers know on Github about this minor oversight, so they'll probably fix it in the next version of p5.
Answers
Google "Processing.js fullscreen".
First result: http://processingjs.org/reference/screen/
Second result: http://forum.processing.org/one/topic/processing-js-full-screen-in-browser.html
Third result: http://forum.processing.org/one/topic/true-full-screen-in-processing-js.html
If nothing in any of the above links works, then post an MCVE showing what you've tried and where you're stuck, and we'll go from there.
I was just experimenting with full screen in p5. This is what I came up with (updated Feb. 27, 2015):
p5 Full Screen Demo
Here's the HTML:
<!DOCTYPE html> <html> <head> <title>p5.js Full Screen Demo</title> <script src="libraries/p5.js" type="text/javascript"></script> <script src="sketch.js" type="text/javascript"></script> <style type="text/css"> body {margin:0; padding:0;} /* remove top and left whitespace */ canvas {display:block;} /* remove scrollbars */ canvas:focus {outline:0;} /* remove blue outline around canvas */ .fs {position:fixed; bottom:20px; right:20px;} #enter {display:block;} #exit {display:none;} </style> </head> <body> <img id="enter" class="fs" src="enter.png"> <img id="exit" class="fs" src="exit.png"> </body> </html>
Here's the sketch:
And here are the two images it uses:
thanks very much!
You’re welcome!
For the record, I have now tested the 2/27 update on all the browsers to which I have access.
OS X Mavericks: Works fine in Safari, Chrome, Opera, and Firefox.
Windows 8: Works in Internet Explorer 11, Chrome, Opera and Firefox (but see below).
Windows XP: Works in Chrome, Opera, and Firefox. Of course IE 8 doesn’t even support the Canvas element, so it doesn't work in that.
Windows 8 and XP were running on a Mac using VMware Fusion 5.
In order to get this working in IE 11 in Windows 8, I had to open up p5.js v0.4.2 and add
near the end of function exitFullscreen() -- after the closing curly bracket on line 2244. I let the developers know on Github about this minor oversight, so they'll probably fix it in the next version of p5.
awesome thank you!