I made a simple game using Processing and would like to share the applet with friends so they can play it on a browser (instead of downloading a .rar file with the application).
I tried putting the applet folder inside the dropbox "public" folder and copying the url to the "index.html" file, but it did not work (the page just showed the text that would go below the applet)
I'm a noob to hosting stuff on the web. Can anybody help? :/
I'm quite familiar to Processing but I'm still starting to learn how to use other Java methods in my sketches.
Whenever I continuously use any method that resizes the Java frame, such as setSize(), the application window starts flashing white.
This is an example of what I'm talking about:
int windowHeight=200;
void setup() {
size (200, 200);
smooth();
stroke(0);
fill(255);
ellipseMode(CORNER);
}
void draw() {
background(128);
for (int i=0;i<100;i++){
ellipse((i/10)*20,(i%10)*20,20,20);
}
windowHeight++;
frame.setSize(200,windowHeight);
}
Curiously, the flickering happens more frequently in some computers than others, and apparently in some computers it doesn't happen at all. If you don't see the flickering, try dragging the window while it grows, it should get more intense.
Also, I found out you can change the color of the flash by using this line in the setup() method:
setBackground(new java.awt.Color(255,0,0));
I've searched through the web and found other people who had the same problem in Java forums, but apparently no one found a solution.
Does anyone know a way to prevent this from happening? Thanks in advance.