# HG changeset patch # User Jason Maltzen # Date 2019-11-08 21:35:30 # Node ID 3341575130646f138bd6417229ae9ed56ae99739 # Parent f1323ba34306ac5abd6723ca94918187a3c94450 Change IsRed / IsGreen / IsBlue tests to be a little more tolerant of brighter pixels - was not detecting green clipped high correctly with the new brighter background texture. diff --git a/ReactionRecorder.cs b/ReactionRecorder.cs --- a/ReactionRecorder.cs +++ b/ReactionRecorder.cs @@ -200,15 +200,15 @@ namespace DesertPaintLab public static bool IsRed(PixelColor color) { - return (color.r > 0x9F) && (color.g < 0x62) && (color.b < 0x62); + return (color.r > 0x9F) && (color.g < 0x70) && (color.b < 0x70); } public static bool IsGreen(PixelColor color) { - return (color.r < 0x62) && (color.g > 0x9F) && (color.b < 0x62); + return (color.r < 0x70) && (color.g > 0x9F) && (color.b < 0x70); } public static bool IsBlue(PixelColor color) { - return (color.r < 0x62) && (color.g < 0x62) && (color.b > 0x9F); + return (color.r < 0x70) && (color.g < 0x70) && (color.b > 0x9F); } }