Processing.html (iti0090)
Allikas: Lambda
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>processing.js</title> <script type="text/javascript" src="processing.min.js"></script> </head> <body> <h1>Processing.js test 1</h1> <script type="application/processing" target="pjs"> int ballx = 100; int bally = 20; int ballradius = 20; void setup() { size(200, 200); background(100); stroke(255); println('console!'); frameRate(10); } void draw() { background(100); ellipse(ballx,bally,ballradius,ballradius); bally += 1; } </script> <canvas id="pjs"> </canvas> </body> </html>