<script src="http://spelprogrammering.nu/simple.js">
function start() 
{
    factor = 2;
    scale(factor,factor);
    translate(-totalWidth/2+80,-70)

    math.point(0, 0, 10, "blue");
    math.point(1.03+1, 1.03+1, 10, "red");
    math.line(0, 0, 2, 2, "black", 5);
    math.line(2, 2, 1.8, 1.9, "black", 5);
    math.line(2, 2, 1.9, 1.8, "black", 5);
    math.text(-0, 1, 43, "10 m");
    math.text(-0.5, -0.30, 33, "(423, 280)");
    math.text(0, 2.15, 23 ,"(423+cos(v)*10, 280+sin(v)*10)", "blue");

    math.arcRadians(0.2, pi/4, 2, "red");
    math.text(0.3, 0.05, 33, "v", "red");

    math.line(0, 0, 2, 0, "brown", 5);
    math.line(2, 0, 2, 2, "brown", 5);
    math.text(0.9, 0.08, 23, "cos(v)*10", "blue");
    math.text(2.05, 1, 23, "sin(v)*10", "blue");
}
</script>
        
Gå tillbaka