This commit is contained in:
parent
d1dee7bc3d
commit
f53aad9a94
4 changed files with 160 additions and 0 deletions
56
site/gradient-bands/index.html
Normal file
56
site/gradient-bands/index.html
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Gradient Bands - Tools</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
|
||||
>
|
||||
<link rel="stylesheet" href="./style.css">
|
||||
</head>
|
||||
<body class="container">
|
||||
<header>
|
||||
<hgroup>
|
||||
<h1>Gradient Bands</h1>
|
||||
<p>Generate colour gradients with customisable bands</p>
|
||||
</hgroup>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section>
|
||||
<div class="grid">
|
||||
<div>
|
||||
<label for="start-color">Start Colour</label>
|
||||
<input type="color" id="start-color" value="#ff0000">
|
||||
</div>
|
||||
<div>
|
||||
<label for="end-color">End Colour</label>
|
||||
<input type="color" id="end-color" value="#0000ff">
|
||||
</div>
|
||||
<div>
|
||||
<label for="bands">Number of Bands</label>
|
||||
<input type="number" id="bands" value="10" min="1" max="100">
|
||||
</div>
|
||||
<div>
|
||||
<label for="func">Function</label>
|
||||
<select id="func">
|
||||
<option value="linear">Linear</option>
|
||||
<option value="quad">Quadratic</option>
|
||||
<option value="cubic">Cubic</option>
|
||||
<option value="sin">Sinusoidal</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<canvas id="gradient-canvas" width="800" height="400"></canvas>
|
||||
<button id="download-btn">Download PNG</button>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<script src="main.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue