Final
This commit is contained in:
RobinNixon
2020-12-10 13:51:13 +00:00
parent 3aeeb4477e
commit 53063593e3
1127 changed files with 0 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>Rotating (a)</title>
<script src='OSC.js'></script>
</head>
<body>
<canvas id='mycanvas' width='500' height='280'></canvas>
<script>
canvas = O('mycanvas')
context = canvas.getContext('2d')
S(canvas).background = 'lightblue'
myimage = new Image()
myimage.src = 'image.png'
myimage.onload = function()
{
for (j = 0 ; j < 4 ; ++j)
{
context.drawImage(myimage, 20 + j * 120 , 20)
context.rotate(Math.PI / 25)
}
}
</script>
</body>
</html>