Processing.html (iti0090): erinevus redaktsioonide vahel
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> | |||
<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> | |||
</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>