forked from color-js/color.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
29 lines (26 loc) · 785 Bytes
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Experiment</title>
</head>
<body>
<script type="module">
// import Color from "./src/index.js";
// import Color2 from "https://colorjs.io/src/index.js";
import ColorSpace from "./src/space.js";
import "./src/spaces/index.js";
import set from "./src/set.js";
// import * as util from "./src/util.js";
// window.ColorSpace = ColorSpace;
// window.Color = Color;
// window.util = util;
// new Color("hsl(0 80% 50%)").set("lch.l", 94).toString()
let color = {spaceId: "hsl", coords: [0, 80, 50]};
set(color, "lch.l", 94);
console.log(color.coords);
</script>
</body>
</html>