Processing.html (iti0090): erinevus redaktsioonide vahel

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

Viimane redaktsioon: 27. oktoober 2014, kell 21:57

<!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>