-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (31 loc) · 1.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Color Matching Functions</title>
<script src="./index.js"></script>
<script src="./color-conversions.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div>
<div class="swatch" data-type="swatch" data-id="1"></div>
</div>
<div class="rgb-inputs" data-type="rgb-inputs">
r<input type="number" value=0 min=0 max=255 data-type="r">
g<input type="number" value=0 min=0 max=255 data-type="g">
b<input type="number" value=0 min=0 max=255 data-type="b">
</div>
<div class="xyY-inputs" data-type="xyY-inputs">
x<input type="number" value=0 max="1.0" data-type="x">
y<input type="number" value=0 max="1.0" data-type="y">
Y<input type="number" value=1 data-type="Y" disabled>
</div>
<div>
<canvas width="300" height="300" id="chromaticityDiagram"></canvas><br>
<button id="drawChromaticityDiagram">Draw</button>
</div>
</body>
</html>