summaryrefslogtreecommitdiff
path: root/2pi.html
blob: 447e8b007175051710b5dc8a6ce7f90053eab306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<title>π calculator</title>

<meta charset="utf-8">

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.js"></script>

</head>
<body>
<h2>π calculator</h2>
<div id="header_links_div"></div>
<script src="js/header_links.js"></script>
<hr>
<p>Since 2π day is today (6/28), here's a π/2π calculator. Draw a circle, then find out how well your circle approximates π!<br>
<button onclick="calculate();">Calculate π</button><br>
<div id="info"></div>
<script src="js/2pi.js"></script>

</html>