forked from malik-tillman/Fluid-JS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (22 loc) · 761 Bytes
/
index.html
File metadata and controls
27 lines (22 loc) · 761 Bytes
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
<!-- Welcome to Fluid.JS -->
<!DOCTYPE html>
<html lang="en">
<head> <!-- The Magic 🔮 -->
<script src="lib/fluid.min.js"></script>
<meta charset="UTF-8">
<title>Welcome to Fluid.js</title>
</head>
<body style="margin: 0;">
<h1>Fluid JS</h1>
<!-- Declare a canvas element -->
<canvas id="renderSurface" style="width: 80vw; height: 80vh;"></canvas>
<script>
/* Get a reference to your canvas */
const canvas = document.getElementById('renderSurface');
/* Initiate the Fluid object with that canvas */
const fluid = new Fluid(canvas);
/* Activate the fluid */
fluid.activate();
</script>
</body>
</html>