-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (26 loc) · 1.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Torus</title>
<link href="http://fonts.googleapis.com/css?family=Walter+Turncoat&.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.min.js" integrity="sha512-WIklPM6qPCIp6d3fSSr90j+1unQHUOoWDS4sdTiR8gxUTnyZ8S2Mr8e10sKKJ/bhJgpAa/qG068RDkg6fIlNFA==" crossorigin="anonymous"></script>
<style>
body{
margin: 0 auto;
padding: 10px;
max-width: 800px;
}
</style>
</head>
<body>
<h1>The Torus</h1>
<p>The Torus has quickly become one of my favorite mathmatical shapes. In order to better understand it I am utilizing my knowledge of javascript and a library called p5.js "a JavaScript library for creative coding" </p>
<script src="./tours.js"></script>
<p>Surface Area = (2πR) × (2πr)</p>
<p>Volume = (2πR) × (πr2)</p>
<p>Where R is the distance from the center of the tube to the center of the torus</p>
<p>r is the radius of the tube.</p>
</body>
</html>