-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (36 loc) · 1.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.4/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.4/addons/p5.sound.min.js"></script>
<script src="sketch.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css">
<meta charset="utf-8" />
</head>
<body>
<h1>PALETTE FROM IMAGE</h1>
<div class="grid__container">
<div class = "grid_item">
<h2>ABOUT</h2>
<p>
When you upload an image file, a 5-color palette will be generated from the colors in the image.
The colors are determined using a simple k-clustering algorithm based on RGB values.
</p>
<h2>INSTRUCTIONS</h2>
<p>
Click on the "Choose File" button and pick an image file (.jpg, .png, .webp, etc.).
</p>
<p>Wait for the generator to work. Please be patient! The webpage may appear to freeze
for anywhere from 5 to 20 seconds, but will resume functionality and display your
palette once the algorithm finishes running.
</p>
<p>
Save your image!
</p>
</div>
<div class = "grid_item">
<div class = "canvas"></div>
</div>
</div>
</body>
</html>