forked from Fauntleroy/dither
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.ts
28 lines (24 loc) · 946 Bytes
/
constants.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
export const COLOR_PALETTES = {
JD093A: ['#121D1D', '#D2FFF8'],
Macintosh: ['#202611', '#e5ffff'],
'Zenith ZVM 1240': ['#342119', '#FFD880'],
'Commodore 1084': ['#392F6D', '#9CE4EB'],
'IBM 5151': ['#25332F', '#01EB61'],
'IBM 8503': ['#222329', '#F5EFD8'],
'Metal Gear': ['#0f1713', '#74da9e'],
CP2077: ['#2C121C', '#7FF3FB'],
'Black & White': ['#111111', '#ffffff'],
Grayscale: ['#222222', '#DDDDDD']
} as const;
export type ColorPaletteId = keyof typeof COLOR_PALETTES;
export const CAMERA_RESOLUTIONS = {
'200 x 150': [200, 150],
'320 x 240': [320, 240],
'480 x 360': [480, 360],
'640 x 480': [640, 480]
} as const;
export type CameraResolutionId = keyof typeof CAMERA_RESOLUTIONS;
export const STORE_WEBCAM_ENABLED = 'dither:webcamEnabled';
export const STORE_COLOR_PALETTE_ID = 'dither:colorPaletteId';
export const STORE_ROOM_HISTORY = 'dither:roomHistory';
export const STORE_CAMERA_RESOLUTION_ID = 'dither:resolutionId';