-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·47 lines (47 loc) · 1.5 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
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<head>
<title>workly.com/proportion</title>
<link rel="stylesheet" href="styles.css">
<script type="text/javascript" src="proportion.js"></script>
<script type="text/javascript" src="prMachines.js"></script>
<script type="text/javascript">
var theP, theMachines, t;
function animator() {
t = t+0.005;
theP.clear();
theMachines.completeParallelogram_test(t);
theP.redraw();
}
function startAnimation() {
t = 0.0;
var theCanvas = document.getElementById("sampleCanvas");
var theContext = theCanvas.getContext("2d");
theP = new prPage(theContext);
theMachines = new prMachines(theP);
setInterval(animator, 50);
}
</script>
</head>
<body onLoad="startAnimation();">
<div class="container">
<div class="subCont">
<div class="left">
<img src="gallery/machines.jpg" width="128" height="128"/>
</div><!-- left -->
<div class="right">
This is the home page for "Proportion", a JavaScript library for geometry and drafting.
<a href="gallery/index.html">Gallery</a> --
<a href="http://github.com/bernardio5/proportion/">Github</a> --
<a href="editor/index.html">Editor</a>
<br>
Below is demonstrated a method of constructing a parallelogram from three points,
which happen to be moving about three circles.
</div><!-- right -->
<div class="clear"></div>
</div><!-- subCont -->
<div class="subCont">
<canvas id="sampleCanvas" width="640" height="640"></canvas>
</div>
</div><!-- container -->
</body>
</html>