generated from qq15725/starter-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.ts
47 lines (41 loc) · 775 Bytes
/
options.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
import type { ImageSource } from './types'
export interface PaletteOptions {
/**
* The maximum number of colors to use in the palette(2 - 256)
*
* @default 256
*/
maxColors?: number
/**
* Statistics mode
*
* @default 'full'
*/
statsMode?:
// Compute full frame histograms
| 'diff'
// Compute histograms only for the part that differs from previous frame
| 'full'
/**
* Premultiplied alpha
*
* @default false
*/
premultipliedAlpha?: boolean
/**
* Tint
*
* @default [0xFF, 0xFF, 0xFF]
*/
tint?: Array<number>
/**
* Algorithm for color Image Quantization
*
* @default median-cut
*/
algorithm?: 'median-cut'
/**
* Samples color data
*/
samples?: Array<ImageSource>
}