From 4e4298a32dfd8569e84f4fd0e51d1ba54f09af46 Mon Sep 17 00:00:00 2001 From: Connor Huffine Date: Mon, 11 May 2026 00:08:57 -0400 Subject: [PATCH] Fix Humanoid Heisentest (#43919) * Expand epsilon * Increase epsilon slightly more * Add more comment --- Content.Shared/Humanoid/SkinColorationPrototype.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Shared/Humanoid/SkinColorationPrototype.cs b/Content.Shared/Humanoid/SkinColorationPrototype.cs index 86d83d9abf..6d4619ac2e 100644 --- a/Content.Shared/Humanoid/SkinColorationPrototype.cs +++ b/Content.Shared/Humanoid/SkinColorationPrototype.cs @@ -314,10 +314,10 @@ internal static class SkinColorationUtils public const float EpsilonHue = 0.00277f; /// - /// A value derived by dividing 1 by 256. - /// Due to the way these values are stored and deconstructed we can't expect much more precision than this.. + /// Due to RGB colors being clamped to 8 bits, precision is lost during transformation to HSL or HSV. + /// The precision of the result is approximately 1/180. /// - public const float Epsilon = 0.00390625f; + public const float Epsilon = 0.0056f; /// /// Checks if a hue value is within a specified range, correctly handling ranges that wrap around 1.0 (e.g., reds).