Add another color to entropy value

Add new yellow-green color to entropy value between 3 and 4 to make it more smooth color changes.
This commit is contained in:
Lucas 2025-09-29 11:54:07 -05:00 committed by GitHub
parent 2a1294f1c0
commit a07bd333ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,6 +105,7 @@ class Magic extends Operation {
*/
function chooseColour(val) {
if (val < 3) return "green";
if (val < 4) return "yellowgreen";
if (val < 5) return "goldenrod";
return "red";
}