fix: complete Task 5 visual HUD validation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user