-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-animate.html
25 lines (25 loc) · 983 Bytes
/
test-animate.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Starchart test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<canvas id="test-map800" width="800" height="800"></canvas>
<script type="text/javascript" src="lib/starjs.min.js"></script>
<script type="text/javascript" src="constellations-rey.js"></script>
<script type="text/javascript" src="boundaries-18.js"></script>
<script type="text/javascript" src="starmap.js"></script>
<script type="text/javascript">
var map = new StarMap("test-map800", 800, REY_STARS, REY_CONSTELLATIONS, {planets: true});
var a = -90;
function animate() {
a+=0.5;
map.setOrient(a*StarJs.Math.DEG2RAD);
map.setPos(85,55);
setTimeout(animate, 40);
}
animate();
</script>
</body>
</html>