googlechrome上でprocessingをインタラクティブに表示したく、
ここのサイトを見て、見様見真似でコードを書きましたが開いてみると、白いままで反映されません。
原因を教えて頂けないでしょうか。
html
1<!DOCTYPE html> 2<html> 3<head> 4 <meta charset="utf-8"> 5 <title>Processing.js Demo</title> 6</head> 7<body> 8 <canvas data-processing-sources="processing.pde"></canvas> 9 <script src="./processing.js"></script> 10</body> 11</html>
processing
1int x,y; 2void setup() { 3 size(400,400); 4 background(255); 5 x = 0; 6 y = 0; 7} 8 9void draw() { 10 11 x++; 12 y++; 13 ellipse(x,y,10,10); 14 15 if(x>width || y>height){ 16 background(255); 17 x = 0; 18 y = 0; 19 } 20}
processing.jsは公式サイトのzipファイルからとってきたものを同一フォルダに収めただけです。
ご指導のほどお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。