isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
47 lines (43 loc) • 2.64 kB
text/typescript
import { StageID } from "isaac-typescript-definitions";
import { newReadonlyColor } from "../functions/readOnly";
const BASEMENT_COLOR = newReadonlyColor(26 / 255, 14 / 255, 12 / 255);
const CAVES_COLOR = newReadonlyColor(18 / 255, 13 / 255, 8 / 255);
const DEPTHS_COLOR = newReadonlyColor(8 / 255, 8 / 255, 8 / 255);
const WOMB_COLOR = newReadonlyColor(27 / 255, 3 / 255, 3 / 255);
const SHEOL_COLOR = newReadonlyColor(6 / 255, 6 / 255, 6 / 255);
/** We arbitrarily specify a default color equal to that of Basement. */
const DEFAULT_COLOR = BASEMENT_COLOR;
/** These values are taken from StageAPI. */
export const VERSUS_SCREEN_BACKGROUND_COLORS = {
[]: DEFAULT_COLOR, // 0
[]: BASEMENT_COLOR, // 1
[]: newReadonlyColor(26 / 255, 17 / 255, 13 / 255), // 2
[]: newReadonlyColor(28 / 255, 12 / 255, 10 / 255), // 3
[]: CAVES_COLOR, // 4
[]: newReadonlyColor(15 / 255, 10 / 255, 8 / 255), // 5
[]: newReadonlyColor(21 / 255, 28 / 255, 35 / 255), // 6
[]: DEPTHS_COLOR, // 7
[]: newReadonlyColor(10 / 255, 6 / 255, 6 / 255), // 8
[]: DEPTHS_COLOR, // 9
[]: WOMB_COLOR, // 10
[]: newReadonlyColor(22 / 255, 6 / 255, 5 / 255), // 11
[]: newReadonlyColor(42 / 255, 19 / 255, 10 / 255), // 12
[]: newReadonlyColor(26 / 255, 32 / 255, 40 / 255), // 13
[]: SHEOL_COLOR, // 14
[]: newReadonlyColor(6 / 255, 13 / 255, 17 / 255), // 15
[]: newReadonlyColor(9 / 255, 4 / 255, 3 / 255), // 16
[]: newReadonlyColor(15 / 255, 9 / 255, 6 / 255), // 17
[]: DEFAULT_COLOR, // 24
[]: DEFAULT_COLOR, // 25
[]: newReadonlyColor(0, 0, 0), // 26
[]: newReadonlyColor(29 / 255, 30 / 255, 32 / 255), // 27
[]: newReadonlyColor(35 / 255, 35 / 255, 29 / 255), // 28
[]: newReadonlyColor(17 / 255, 15 / 255, 12 / 255), // 29
[]: newReadonlyColor(12 / 255, 10 / 255, 10 / 255), // 30
[]: newReadonlyColor(14 / 255, 10 / 255, 14 / 255), // 31
[]: newReadonlyColor(15 / 255, 4 / 255, 4 / 255), // 32
[]: newReadonlyColor(13 / 255, 14 / 255, 12 / 255), // 33
[]: newReadonlyColor(13 / 255, 14 / 255, 12 / 255), // 34
[]: DEFAULT_COLOR, // 35
[]: DEFAULT_COLOR, // 36
} as const satisfies Record<StageID, Readonly<Color>>;