-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (52 loc) · 2.19 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<script src="./app.js" type="module" defer></script>
<title>Computer Graphics Algorithms</title>
</head>
<body>
<h1>Computer Graphics Algorithms</h1>
<div class="container">
<div id="graph">
<div class="grid-lines"></div>
</div>
<div id="controller">
<div>
<label for="algo">Algo: </label>
<select id="algo">
<option value="dda-algo">Digital Differential Analyzer (DDA)</option>
<option value="blg-algo">Bresenham’s Line Generation</option>
</select>
</div>
<div>
<label for="pixel-size">Pixel Size: </label>
<input type="number" id="pixel-size" value="10">
<span id="range" style="margin-left: 0.5rem;">
Value Range: <span id="range-min">1</span> to
<span id="range-max">30</span>
</span>
</div>
<form id="drawing-tool">
<div>
<label for="x1">x<sub>1</sub>:</label>
<input type="number" id="x1" min="1">
<label for="y1">y<sub>1</sub>:</label>
<input type="number" id="y1" min="1">
<label for="x2">x<sub>2</sub>:</label>
<input type="number" id="x2" min="1">
<label for="y2">y<sub>2</sub>:</label>
<input type="number" id="y2" min="1">
</div>
<div>
<input type="submit" value="Draw">
<input type="button" id="clear" value="Clear Canvas">
</div>
</form>
</div>
</div>
</body>
</html>