Start adding my own gravity points

This commit is contained in:
Greg Shuflin 2023-10-25 00:51:04 -07:00
parent 0af8878ae9
commit 45d380010a
4 changed files with 39 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<script type="module" src="app.js"></script>
</head>
<body>
<canvas id="c"></canvas>
<canvas id="mainCanvas"></canvas>
<div class="info">Click to add gravity point.</div>
</body>
</html>

View File

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Fizzy Sparks</title>
<link href="style.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.min.js"></script>
<script type="module" src="app.js"></script>
</head>
<body>
<canvas id="c"></canvas>
<div class="info">Click to add gravity point.</div>
</body>
</html>

View File

@ -0,0 +1,23 @@
body {
font-family: "Fira Sans", Helvetica, sans-serif;
padding: 0;
margin: 0;
background-color: #222;
overflow: hidden;
}
canvas {
position: absolute;
top: 10;
left: 10;
}
.info {
position: absolute;
top: 0;
left: 0;
padding: 5px 15px;
color: #eee;
font-size: 13px;
background-color: rgba(0, 0, 0, .5);
}