From 99bc649ffd9e708fcb9f45e525459d3c0877597b Mon Sep 17 00:00:00 2001 From: Piotr Miszkiel Date: Fri, 13 Aug 2021 13:31:33 +0200 Subject: [PATCH] Changed cursor color to black and improved its appearance to be more aesthetic --- src/ScreenCapLibrary/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ScreenCapLibrary/utils.py b/src/ScreenCapLibrary/utils.py index d20ff11..52121bc 100644 --- a/src/ScreenCapLibrary/utils.py +++ b/src/ScreenCapLibrary/utils.py @@ -17,8 +17,8 @@ import cv2 import numpy as np -cursor_x_list = [0, 8, 6, 14, 12, 4, 2, 0] -cursor_y_list = [0, 2, 4, 12, 14, 6, 8, 0] +cursor_x_list = [0, 10, 5, 9, 7, 3, 0, 0] +cursor_y_list = [0, 10, 10, 18, 19, 12, 15, 0] def _norm_path(path): @@ -69,7 +69,7 @@ def draw_cursor(frame, mouse_x, mouse_y): cursor_y = [y + mouse_y for y in cursor_y_list] cursor_points = list(zip(cursor_x, cursor_y)) cursor_points = np.array(cursor_points, 'int32') - cv2.fillPoly(frame, [cursor_points], color=[0, 255, 255]) + cv2.fillPoly(frame, [cursor_points], color=[0, 0, 0]) def is_pygtk(screenshot_module):