-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (40 loc) · 1.8 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
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fourier</title>
<link rel="stylesheet" href="style/style.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300&display=swap" rel="stylesheet">
</head>
<body>
<h1 class="title">Fourier Series - JavaScript v1.0.0</h1>
<canvas height="1000" width="1000" class="canvas" id="layer1"></canvas>
<canvas height="1000" width="1000" class="canvas" id="layer2"></canvas>
<div class="images-list">
<button class="buttons">Upload Image</button>
<input type="file" accept="image/*" name="image" class="inputs" onchange="loadImage(event)">
<img onclick="controlImage(1)" id="output"><br>
<button onclick="controlImage(0)" class="buttons">Clear</button><br>
<button onclick="setEditMode()" class="buttons" id='edit-button'>Edit Mode</button><br>
<button onclick="doFourier()" class="buttons">Draw!</button><br>
<input type="range" min="0" max="40" id="circle-range"><div id="circle-output"></div>
<input type="range" min="1" max="5" id="dtime-range"><div id="dtime-output"></div>
</div>
<script type="module" src="src/main.js"></script>
<script type="module" src="src/events.js"></script>
<script type="module">
import { controlImage, setEditMode, doFourier, addCircle, loadImage } from './src/main.js'
window.loadImage = loadImage
window.controlImage = controlImage
window.setEditMode = setEditMode
window.doFourier = doFourier
window.addCircle = addCircle
</script>
<footer class="footer">
Fourier Series v1.0.0
Copyright ©2021 André Pinheiro
Read the licence for more informations.
</footer>
</body>
</html>