Loading...
Logo
Processing Forum
I got this to work on my computer but when I upload everything, it doesn't work. 


Here is the page it should work on:

And just in case you want to see what that I uploaded all the right files, I duplicated the folder and deleted the index file here:

The code from the start of the app:
Copy code
  1. import fullscreen.*;
  2. import japplemenubar.*;

  3. FullScreen fs; 

  4. void setup()
  5. {
  6.   size(800, 600);
  7.   stroke(255);
  8.   frameRate(40);
  9.   
  10.   // Create the fullscreen object
  11.   fs = new FullScreen(this); 
  12.   
  13.   // enter fullscreen mode
  14.   fs.enter(); 
  15. }
Any thoughts? It's not critical.. I suppose it has something to do with the browser not wanting to lurch people into full screen unprepared. Any suggestions on implementation? Maybe I should just have the app regular and a full screen option. How would I do that?

Replies(2)

have you try to launch it not in full screen mode ?

I would assume the only way to have you processing sketch to be shown in fullscreen mode is to use javascript in your page. It shouldn't be too hard to make. You would remove the fullscreen library stuff from your processing sketch and get your web page to include a javascript that create that full screen mode. From there you can have your processing loading in the middle of the page, making sure you embed your applet in a nice floating div with the same background color as the surrounding (to create a better effect of full screen, as well as margin auto to center your sketch)

Quickly searching online you can read about it here :




ponnuki.net
Cool. Thanks for the reponse. Think I'll roll w/out full screen for now. Thanks, g