fix: complete Task 5 visual HUD validation

This commit is contained in:
goose
2026-10-08 21:45:46 -04:00
parent 9921e02de3
commit 122fdac97c
7 changed files with 155 additions and 6 deletions
+6 -4
View File
@@ -154,10 +154,12 @@ def is_visible(pixel: tuple[int, int, int]) -> bool:
def is_explored(pixel: tuple[int, int, int]) -> bool:
# Tile texture remains visible under a blue-black fog overlay. This is the
# dominant fog-modulated floor texel; keeping the detector exact avoids HUD
# colors and visible terrain satisfying it.
return pixel == (19, 29, 39)
# Texture-preserving explored terrain is rendered under a blue-black fog
# overlay. GPU blend rounding and the authored floor texture produce a
# palette rather than one portable exact RGB value; accept only its dark,
# blue-shifted range so HUD chrome and visible brown terrain cannot match.
red, green, blue = pixel
return 4 <= red <= 14 and 8 <= green <= 22 and 17 <= blue <= 32 and blue >= green + 4 and green >= red + 3
def measure(path: Path) -> None: