-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
48 lines (47 loc) · 1.23 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
<!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">
<title>Wallpaper Generator</title>
<script src="main.js" defer></script>
<style>
.wallpaper {
border: 5px solid #000000;
width: 500px;
}
.controls td {
padding: 5px;
}
</style>
</head>
<body>
<table class="controls">
<tr>
<td>Width:</td>
<td><input type="number" class="input-width" value="1920"> px</td>
</tr>
<tr>
<td>Height:</td>
<td><input type="number" class="input-height" value="1080"> px</td>
</tr>
<tr>
<td>Linear Start Color:</td>
<td><input type="color" class="input-linear-start-color" value="#00b3ff"></td>
</tr>
<tr>
<td>Linear End Color:</td>
<td><input type="color" class="input-linear-end-color" value="#004a8f"></td>
</tr>
<tr>
<td>Radial Color:</td>
<td><input type="color" class="input-radial-color" value="#8c00ff"></td>
</tr>
<tr>
<td><button type="button" class="btn-generate-wallpaper">Generate Wallpaper</button></td>
</tr>
</table>
<canvas class="wallpaper" width="1920" height="1080"></canvas>
</body>
</html>