Commit f359332a authored by Raitis Ralfs's avatar Raitis Ralfs
Browse files

Change DeVito to pepe

parent 126ba7b3
......@@ -19,7 +19,7 @@ var mouse = {
}
arrow.image.src = 'https://pbs.twimg.com/profile_images/750835789743984641/BWuiIOOa_400x400.jpg';
arrow.image.src = 'https://m.popkey.co/faf390/LlReY.gif';
function drawImageLookat(img, x, y, lookx, looky){
ctx.setTransform(1, 0, 0, 1, x, y);
ctx.rotate(Math.atan2(looky - y, lookx - x) - Math.PI / 2); // Adjust image 90 degree anti clockwise (PI/2) because the image is pointing in the wrong direction.
......
......@@ -17,7 +17,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
<![endif]-->
</head>
<main style="height: 1300px">
<main >
<h2>Pirmais Uzdevums</h2>
<p id="laiks">Šodien ir </p>
<button onclick="pirmaisUzdevums()">Spied lai iegūtu laiku</button>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment