Syntax highlighting

This commit is contained in:
dylan
2023-05-06 10:00:41 -07:00
parent 1fa58961fc
commit 12bc0cb385
4 changed files with 210 additions and 4 deletions

View File

@ -8,6 +8,12 @@ const colors = {
BLUE: [0, 0, 1],
DARKBLUE: [0.1, 0.05, 0.4],
BROWN: [0.6, 0.5, 0.4],
GRAY: [0.5, 0.5, 0.5],
PURPLE: [0.7, 0.1, 0.85],
ORANGE: [0.95, 0.75, 0.25],
CYAN: [0, 0.9, 0.9],
LIGHTGRAY: [0.75, 0.75, 0.75],
REDDISH: [0.7, 1, 0.5],
} as const;
export const palette: Array<[number, number, number, number]> = Object.values(colors).map(val => [...val, 1]);