-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (81 loc) · 3.98 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Dots</title>
<meta name="description" content="Dots Project">
<meta name="author" content="Christopher Lee">
<link rel="icon" type="image/x-icon" href="./images/icon.png">
<link rel="stylesheet" type="text/css" href="./stylesheet.min.css">
<script defer type="text/javascript" src="./main.js"></script>
</head>
<body id="body" class="dark">
<header>
<a id="themeButton" onclick="toggleTheme()">
<div id="themeButtonIcon" class="bi bi-sun-fill"></div>
</a>
<h1 id="title">Dots</h1>
<div id="spacer"></div>
<a id="author" href="https://topherlee513.github.io/"><span class="small">By: </span><span class="bold">topher-lee</span><span class="small">.nft</span></a>
</header>
<main>
<form id="optionsForm" onsubmit="">
<label for="collectionNameUI">Collection Name</label>
<input type="text" name="collectionNameUI" id="collectionNameUI" value="Dots" onchange="setCollectionName()">
<label for="imageSizeXUI">Image Size</label>
<div class="dual">
<input type="number" name="imageSizeXUI" id="imageSizeXUI" step="100" value="500" onchange="setImageWidth()">
<input type="number" name="imageSizeYUI" id="imageSizeYUI" step="100" value="500" onchange="setImageHeight()">
</div>
<label for="backgroundColorUI">Background</label>
<input type="color" id="backgroundColorUI" name="backgroundColorUI" onchange="setBGColor()">
<label for="backgroundColorUI">Particle Color Pallet</label>
<select id="palletSelectUI" onchange="setColorWheel()">
<optgroup label="Pallet">
<option>RGB</option>
<option>HSL</option>
<option>Hue</option>
</optgroup>
</select>
<label for="palletSaturationUI">Saturation (Random Hue Only)</label>
<input type="range" id="palletSaturationUI" name="palletSaturationUI" onchange="setSaturation()">
<label for="palletLightnessUI">Lightness (Random Hue Only)</label>
<input type="range" id="palletLightnessUI" name="palletLightnessUI" onchange="setLightness()">
<label for="particleCountUI">Particle Count</label>
<input type="number" id="particleCountUI" name="particleCountUI" step="10" value="100" onchange="setParticleCount()">
<label for="layoutSelectUI">Layout and Particles</label>
<div class="dual">
<select id="layoutSelectUI" onchange="setLayout()">
<optgroup label="Layout">
<option>Random</option>
<option>Rows</option>
</optgroup>
</select>
<select id="particleSelectUI" onchange="setParticles()">
<optgroup label="Particles">
<option>Blocks</option>
<option>Dots</option>
<option>Mixed</option>
</optgroup>
</select>
</div>
<input type="button" id="create" name="create" value="Generate" onclick="onGenerateButtonPressed()">
<div id="messageBox"></div>
<a id="downloadButton">
<div class="icon bi bi-download"></div>
<div class="text">Download Image</div>
</a>
</form>
<div id="canvasContainer">
<canvas id="canvas"></canvas>
</div>
</main>
<footer>
<div id="copyright">
Copyright © <span id="year" class="bold">2022</span> - <span class="bold txt-accent">topher-lee<span class="small">.nft</span></span>
</div>
</footer>
</body>
</html>