-
-
Notifications
You must be signed in to change notification settings - Fork 546
Expand file tree
/
Copy pathindex-light.js
More file actions
43 lines (33 loc) · 979 Bytes
/
index-light.js
File metadata and controls
43 lines (33 loc) · 979 Bytes
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
import chroma from './src/chroma.js';
// feel free to comment out anything to rollup
// a smaller chroma.js built
// io --> convert colors
import './src/io/css/index.js';
import './src/io/hex/index.js';
import './src/io/hsl/index.js';
import './src/io/lab/index.js';
import './src/io/oklab/index.js';
import './src/io/rgb/index.js';
// operators --> modify existing Colors
import './src/ops/alpha.js';
import './src/ops/darken.js';
import './src/ops/get.js';
import './src/ops/mix.js';
import './src/ops/set.js';
import './src/ops/shade.js';
// interpolators
import './src/interpolator/lrgb.js';
import './src/interpolator/oklab.js';
// generators -- > create new colors
import mix from './src/generator/mix.js';
// other utility methods
import valid from './src/utils/valid.js';
import Color from './src/Color.js';
Object.assign(chroma, {
Color,
valid,
mix,
interpolate: mix
});
export default chroma;
export { Color, valid, mix, mix as interpolate };