Processing.js just on Firefox , not Opera and Chrome .

63 views
Skip to first unread message

Cătălin George Feștilă

unread,
Sep 29, 2017, 12:55:19 PM9/29/17
to Processing.js
I used this source code: 

<!DOCTYPE html>
<html>
<head>
   <title>Hello Web - Processing.js Test</title>
   <script src="processing.js"></script>
 </head>
<body>
   <h1>Processing.js Test</h1>
   <p>This is my first Processing.js web-based sketch:</p>
   <canvas data-processing-sources="gui_001.pde"></canvas>
</body>
</html>

and for gui_001.pde this source code:

void setup() {
  size(800, 500);
  background(50);
}
void draw() {
  ellipse(mouseX, mouseY, 10, 10);
  fill(50);
  rect(0, 0, width, 50)
  fill(255);
}

Is working just with Firefox browser.

On Chrome and Opera is show the h1 and p tag ,but the procesing canvas is a white area.

What is wrong on this ?
Thank you. 

James Brink

unread,
Jul 24, 2018, 1:28:30 PM7/24/18
to Processing.js
I am having the same problem with all my sketches.  Any suggestions why the sketch only runs in Firefox but not Chrome, Opera, IE, or Edge?  (Using Windows 10)

Lee Brunjes

unread,
Jul 24, 2018, 1:38:49 PM7/24/18
to proces...@googlegroups.com
Are you browsing from the file system? The give away is the URL starts file://. Xmlhttprequest which is used to load the sktch may not work properly unless you are using a web server.

On Tue, Jul 24, 2018, 13:28 James Brink <bri...@plu.edu> wrote:
I am having the same problem with all my sketches.  Any suggestions why the sketch only runs in Firefox but not Chrome, Opera, IE, or Edge?  (Using Windows 10)

--
You received this message because you are subscribed to the Google Groups "Processing.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processingjs...@googlegroups.com.
To post to this group, send email to proces...@googlegroups.com.
Visit this group at https://groups.google.com/group/processingjs.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages