Add barycentric demo
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>barycentric</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
}
|
||||
canvas {
|
||||
display: block;
|
||||
}
|
||||
.main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
align-items: center;
|
||||
}
|
||||
.canvas {
|
||||
flex: 1;
|
||||
width: 100vw;
|
||||
overflow: hidden;
|
||||
}
|
||||
.text {
|
||||
font-size: 1.5em;
|
||||
width: 30rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main">
|
||||
<div class="canvas"></div>
|
||||
<div class="text">
|
||||
<p>λ₁ = <span id="lambda1">...</span></p>
|
||||
<p>λ₂ = <span id="lambda2">...</span></p>
|
||||
<p>λ₃ = <span id="lambda3">...</span></p>
|
||||
</div>
|
||||
</div>
|
||||
<script src="./barycentric.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user