colorjs.io
Version:
Color space agnostic color manipulation library
41 lines (34 loc) • 709 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Convert</title>
<link rel="shortcut icon" href="">
<link rel="stylesheet" href="style.css">
<script src="../../color.js" type="module"></script>
</head>
<body>
<output id="colorOutput"></output>
<div class="inputs">
<label>
Color: <input id="colorInput" value="lime" />
</label>
<label>
Precision: <input type="number" id="precisionInput" value="4">
</label>
</div>
<table id="output">
<thead>
<tr>
<th>Id</th>
<th>Coords</th>
<th>color.toString()</th>
<th>Color.prototype.toString.call(color)</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script type="module" src="convert.js"></script>
</body>
</html>