Explain: fix a color inversion in heat map

This commit is contained in:
Claude Brisson
2025-07-25 04:52:02 +02:00
parent 84ab78c461
commit c3cb5826a3

View File

@@ -70,7 +70,7 @@
#set($percent = ($weights.total - $explain.min) / ($explain.low - $explain.min) * 40)
#else
## total is close to max
#set($percent = 60 + ($explain.max - $weights.total) / ($explain.max - $explain.high) * 40)
#set($percent = 60 + 40 * (1 - ($explain.max - $weights.total) / ($explain.max - $explain.high)) )
#end
#end
#set($game = $explain.games[$key])