Test: Unterschied zwischen den Versionen

Aus Die absolute Theorie
Zur Navigation springenZur Suche springen
K (Änderte den Seitenschutzstatus von Test [edit=sysop:move=sysop])
Zeile 2: Zeile 2:
  
 
Hi Bernhard, schau mal unter [[Experimente]], da werde ich sammeln, wie man meine Theorie beweisen könnte.
 
Hi Bernhard, schau mal unter [[Experimente]], da werde ich sammeln, wie man meine Theorie beweisen könnte.
 +
 +
<html>    <head>
 +
        <script src="http://www.till-meyenburg.de/lib/js/graph.js"></script>
 +
<script>
 +
window.onload = function(){
 +
    var canvas = document.getElementById("myCanvas");
 +
 +
    var myGraph = new Graph({
 +
        canvas: canvas,
 +
        minX: -10,
 +
        minY: -120,
 +
        maxX: 10,
 +
        maxY: 120
 +
    });
 +
 +
var context = canvas.getContext("2d");
 +
 +
    myGraph.drawEquation(function(x){
 +
        return x * x;
 +
    }, "blue", 3);
 +
 +
    myGraph.drawEquation(function(x){
 +
        return 100 - (x * x);
 +
    }, "red", 3);
 +
 +
    context.font = "10pt TimesNewRoman";
 +
    context.fillText("Energie", 650, 120);
 +
context.fillText("v(fort)", 650, 70);
 +
context.fillText("v(rot)", 650, 15);
 +
context.fillText("c", 354, 10);
 +
};
 +
</script>
 +
    </head>
 +
    <body>
 +
        <br /><br />
 +
<canvas id="myCanvas" width="700" height="200">
 +
        </canvas>
 +
    </body>
 +
</html>

Version vom 18. Januar 2012, 18:21 Uhr

Ich finde, hier sollte was stehen!

Hi Bernhard, schau mal unter Experimente, da werde ich sammeln, wie man meine Theorie beweisen könnte.

<html> <head>

       <script src="http://www.till-meyenburg.de/lib/js/graph.js"></script>

<script> window.onload = function(){

   var canvas = document.getElementById("myCanvas");

   var myGraph = new Graph({
       canvas: canvas,
       minX: -10,
       minY: -120,
       maxX: 10,
       maxY: 120
   });

var context = canvas.getContext("2d");

   myGraph.drawEquation(function(x){
       return x * x;
   }, "blue", 3);

   myGraph.drawEquation(function(x){
       return 100 - (x * x);
   }, "red", 3);
   context.font = "10pt TimesNewRoman";
   context.fillText("Energie", 650, 120);

context.fillText("v(fort)", 650, 70); context.fillText("v(rot)", 650, 15); context.fillText("c", 354, 10); }; </script>

   </head>
   <body>
       

<canvas id="myCanvas" width="700" height="200">

       </canvas>
   </body>

</html>