very basic code editing!
This commit is contained in:
13
colors.ts
Normal file
13
colors.ts
Normal file
@ -0,0 +1,13 @@
|
||||
const colors = {
|
||||
BLACK: [0, 0, 0],
|
||||
WHITE: [1, 1, 1],
|
||||
RED: [1, 0, 0],
|
||||
YELLOW: [1, 1, 0],
|
||||
GREEN: [0, 1, 0],
|
||||
BLUE: [0, 0, 1],
|
||||
DARKBLUE: [0.1, 0.05, 0.4],
|
||||
} as const;
|
||||
|
||||
export const palette: Array<[number, number, number, number]> = Object.values(colors).map(val => [...val, 1]);
|
||||
|
||||
export const COLOR = Object.fromEntries(Object.keys(colors).map((name, i) => [name, Number(i)])) as {[key in keyof typeof colors]: number};
|
Reference in New Issue
Block a user