Google App Engine의 내 웹 페이지에 Processing Sketch를 온라인으로 게시하고 싶습니다.Google App Engine의 HTML 페이지에 Processing 스케치를 삽입하는 방법
Processing JS Javascript 코드를 HTML 파일에 직접 입력하는 방법을 찾았습니다. 이 파일을 내 컴퓨터에 저장하고 브라우저에서 열면 작동합니다!
그러나이 코드를 내 Google 앱 엔진에 복사하면 빈 상자가 나타납니다.
GAE에 대해 조금 아는 사람이 있습니까? 그 이유는 무엇일까요? 내 HTML 파일의 코드는 입니다. 사람이 성공하는 경우
<html>
<head>
<title>Mouse2D \ Examples \ Processing.org</title>
<!-- script type="text/javascript" src="/_ah/channel/jsapi"></script -->
<script src="processing.js" type="text/javascript"></script>
<!-- script src="http://processing.org/javascript/modernizr-2.6.2.touch.js" type ="!text/javascript"></script -->
</head>
<body>
<label>This is above the Processing Canvas</label>
<br>
<div class="proc">
<script type="application/processing">
void setup()
{
size(640, 360);
noStroke();
rectMode(CENTER);
}
void draw()
{
background(51);
fill(255, 204);
rect(mouseX, height/2, mouseY/2+10, mouseY/2+10);
fill(255, 204);
int inverseX = width-mouseX;
int inverseY = height-mouseY;
rect(inverseX, height/2, (inverseY/2)+10, (inverseY/2)+10);
}
</script>
<canvas width="640" height="360"></canvas>
<div>This is below the canvas</div>
</body>
나는 지금까지 그들이
http://tb21g09.appspot.com/processing 여기
http://processing.org/examples/mouse2d.html
내 위키를 포함하는 것을 시도하고, 프로세싱 예 페이지에 그것을 어떻게 보면이있어 웹 페이지에 처리 스케치를 삽입하는 방법을 알고 싶습니다!
나는 또한 웹 서버에 자바 스크립트 파일을 넣은 다음 HTML 파일에서 호출 할 수 있다는 것을 알고있다. 임무를 수행하는 방법을 잘 모르겠다면, 시도하는 것이 더 쉽고 빠를 것 같습니다.