-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (38 loc) · 1.85 KB
/
index.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="author" content="Gian Marco Todesco">
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0,user-scalable=no">
<title>Epicycles</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h1>Epicycles calculator</h1>
<p>A chain of <a href="https://en.wikipedia.org/wiki/Deferent_and_epicycle">epicycles</a>, each rotating at constant angular speed, can draw
very complex shapes. <a href="https://en.wikipedia.org/wiki/Ptolemy">Ptolemy</a> (90 – 168 A.D.) used this idea to represent
planet orbits. Try to draw something yourself!</p>
<p>Click & draw with the mouse in the square area below and draw a closed curve.</p>
<p>
Speed:
<button onclick="app.changeSpeed(1)">+</button>
<button onclick="app.changeSpeed(-1)">-</button>
Zoom:
<button onclick="app.viewer.zoomin()">+</button>
<button onclick="app.viewer.zoomout()">-</button>
Min radius: <span id="min-radius">0</span>
<button onclick="app.changePrecision(1)">+</button>
<button onclick="app.changePrecision(-1)">-</button>
<span id="circle-count"></span>
</p>
<canvas width="600" height="600" id="c"></canvas>
<p>
Source code <a href="https://github.com/gianmarco-todesco/epicycles">here</a>.
This work is licensed under a MIT Licence.
</p>
<footer>Epicycles, 2020 - Gian Marco Todesco</footer>
</div>
<script src="main.js"></script>
</body>
</html>