nodes/colours.pyΒΆ

Part of Mr. Rescue.

 1"""Mr. Rescue palette: warm-on-charcoal arcade pixels.
 2
 3Loosely mirrors the upstream LOVE palette: dirty earth tones for tiles,
 4cyan stream, hot orange/red for fires, mustard yellow for civilians.
 5"""
 6
 7# Background / sky
 8BG = (0.05, 0.06, 0.10, 1.0)  # near-black charcoal
 9SKY = (0.10, 0.13, 0.22, 1.0)  # night-sky for outside building
10
11# Tiles
12WALL = (0.32, 0.20, 0.14, 1.0)  # brick brown
13WALL_LIGHT = (0.42, 0.28, 0.20, 1.0)
14FLOOR = (0.50, 0.34, 0.22, 1.0)
15LADDER = (0.68, 0.50, 0.28, 1.0)
16DOOR = (0.45, 0.30, 0.18, 1.0)
17INTERIOR = (0.18, 0.15, 0.18, 1.0)  # void inside building cells
18
19# Interior decoration (back-wall layer behind gameplay)
20# Per-storey wallpaper tints so the 3 floors read as distinct levels.
21STOREY_TINTS = [
22    (0.22, 0.15, 0.14, 1.0),  # bottom: warm brown
23    (0.15, 0.17, 0.20, 1.0),  # middle: cool slate
24    (0.19, 0.15, 0.22, 1.0),  # top: dusky violet
25]
26WALLPAPER_STRIPE = (1.10, 1.10, 1.10, 0.10)  # subtle vertical pattern (mult-ish)
27WAINSCOT = (0.26, 0.18, 0.13, 1.0)  # dark baseboard skirting
28WAINSCOT_TRIM = (0.46, 0.32, 0.20, 1.0)
29WINDOW_FRAME = (0.09, 0.09, 0.13, 1.0)
30WINDOW_NIGHT = (0.11, 0.15, 0.30, 1.0)
31WINDOW_LIT = (1.00, 0.90, 0.62, 1.0)  # warm lit pane (bright enough to bloom)
32PROP_WOOD = (0.42, 0.28, 0.17, 1.0)
33PROP_WOOD_LIGHT = (0.58, 0.40, 0.24, 1.0)
34PROP_METAL = (0.40, 0.43, 0.50, 1.0)
35PROP_PLANT = (0.28, 0.52, 0.30, 1.0)
36PROP_PLANT_POT = (0.45, 0.25, 0.16, 1.0)
37
38# Parallax night backdrop seen through the windows.
39NIGHT_TOP = (0.04, 0.05, 0.12, 1.0)
40NIGHT_BOTTOM = (0.10, 0.09, 0.18, 1.0)
41SKYLINE_NEAR = (0.06, 0.06, 0.13, 1.0)
42SKYLINE_FAR = (0.09, 0.09, 0.17, 1.0)
43STAR = (0.85, 0.88, 1.00, 1.0)
44WINDOW_GLOW = (0.95, 0.82, 0.45, 1.0)  # lit windows in the far skyline
45
46# Player firefighter
47PLAYER_SUIT = (0.95, 0.78, 0.30, 1.0)  # mustard yellow jacket
48PLAYER_HAT = (0.85, 0.20, 0.20, 1.0)  # red helmet
49PLAYER_SKIN = (0.95, 0.78, 0.62, 1.0)
50PLAYER_GUN = (0.55, 0.55, 0.60, 1.0)
51
52# Water stream
53WATER = (0.60, 0.85, 1.00, 0.92)
54WATER_TIP = (0.85, 0.95, 1.00, 1.00)
55
56# Fire
57FIRE_RED = (1.00, 0.20, 0.10, 1.0)
58FIRE_ORANGE = (1.00, 0.55, 0.10, 1.0)
59FIRE_YELLOW = (1.00, 0.90, 0.30, 1.0)
60SMOKE = (0.20, 0.20, 0.22, 0.6)
61
62# Civilians (4 outfits, recolour offset)
63CIVILIAN_OUTFITS = [
64    (0.85, 0.40, 0.40, 1.0),
65    (0.45, 0.65, 0.85, 1.0),
66    (0.55, 0.75, 0.45, 1.0),
67    (0.85, 0.65, 0.85, 1.0),
68]
69CIVILIAN_SKIN = (0.92, 0.74, 0.58, 1.0)
70CIVILIAN_BURN = (0.95, 0.40, 0.10, 1.0)
71PANIC = (0.95, 0.80, 0.20, 1.0)
72
73# Enemy
74ENEMY_BODY = (0.55, 0.18, 0.20, 1.0)
75ENEMY_HOT = (1.00, 0.40, 0.20, 1.0)
76
77# HUD
78HUD_BG = (0.06, 0.05, 0.08, 1.0)
79HUD_BORDER = (0.32, 0.28, 0.22, 1.0)
80HUD_FG = (0.96, 0.95, 0.84, 1.0)
81HUD_DIM = (0.60, 0.58, 0.52, 1.0)
82
83WATER_BAR = (0.45, 0.80, 1.00, 1.0)
84OVERLOADED_BAR = (1.00, 0.50, 0.20, 1.0)
85TEMP_LOW = (0.95, 0.85, 0.20, 1.0)
86TEMP_HIGH = (0.95, 0.20, 0.10, 1.0)
87CASUALTY_OK = (0.55, 0.85, 0.45, 1.0)
88CASUALTY_LOST = (0.85, 0.30, 0.30, 1.0)
89
90WHITE = (1.0, 1.0, 1.0, 1.0)
91BLACK = (0.0, 0.0, 0.0, 1.0)
92RED = (1.0, 0.20, 0.20, 1.0)
93GREEN = (0.30, 0.95, 0.45, 1.0)
94YELLOW = (1.0, 0.90, 0.30, 1.0)