[chronojump] Better info on IdentifyPixelColorIsInPath
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Better info on IdentifyPixelColorIsInPath
- Date: Mon, 24 May 2021 15:27:33 +0000 (UTC)
commit e0f17ab842d61af71bbacf260332bc8fa811ee0b
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon May 24 17:26:46 2021 +0200
Better info on IdentifyPixelColorIsInPath
src/utilGtk.cs | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/utilGtk.cs b/src/utilGtk.cs
index 10c954496..bb1449d9a 100644
--- a/src/utilGtk.cs
+++ b/src/utilGtk.cs
@@ -757,7 +757,13 @@ public class UtilGtk
}
public static bool IdentifyPixelColorIsInPath(uint col)
{
- return (col == 11722734);
+ /*
+ rgb to decimal and viceversa:
+ https://convertingcolors.com/rgb-color-238_0_0.html?search=rgb(238,0,0)
+ https://convertingcolors.com/decimal-color-15597568.html
+ */
+ return (col == 11722734); //LIGHT_BLUE_PLOTS
+ //return (col == 15597568); //RED_LIGHT
}
public static void GetPixelsInOutOfPath (Gdk.Point [] points, int start, Gdk.Pixmap pixmap, ref int
inPath, ref int outPath, bool methodSafeMemory)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]