<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(1.2, 2.15, 33 ,"(423+x, 280+y)");

    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(1.4, 0.05, 33, "x", "brown");
    math.text(1.8, 1, 33, "y", "brown");
}
</script>
        
Gå tillbaka