-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtest.ts
48 lines (43 loc) · 925 Bytes
/
test.ts
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
43
44
45
46
47
48
// import { token } from './lib/utils.ts'
import {
diverging,
sortBy,
filterBy,
stats,
colors,
} from "./lib/index.ts";
import {
achromatic,
family,
mc,
token,
} from "./lib/utils.ts";
// console.log(stats(colors('all', '600'), {
// factor: ['chroma', 'hue'], colorspace: 'lch'zzzzzzz
// }))
//
// console.info(
// filterBy(colors("all", "500"), {
// factor: ["chroma", "hue"],
// ranges: {
// hue: ["<100"],
// chroma: [20],
// },
// colorspace: "lch",
// }),
// );
//
console.info(
sortBy(["purple", "blue"], {
factor: ["chroma", "hue", "lightness"],
}),
);
// * fix this
// ! fix this
// ? fix this
// todo
//console.log(mc('rgb.b')(['rgb', 0.4, 0.3, 0.1]))
// console.log(mc('lch.h')({ r: 0.2, g: 0.4, b: 0.5, mode: 'rgb' }))
// console.log(token({ r: 0.2, g: 0.4, b: 0.5, mode: 'rgb' }, { kind: 'obj', targetMode: 'lch' }))
var a = [1, 2, 3];
for (const key in a) console.log(key);