From c6e2f85eddcc76594b36d6d368d800c252c79777 Mon Sep 17 00:00:00 2001 From: Frank DeMarco Date: Sun, 15 Apr 2018 03:17:31 -0400 Subject: [PATCH] hue shift int --- pgfw/extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgfw/extension.py b/pgfw/extension.py index c621a26..2dc5f3d 100644 --- a/pgfw/extension.py +++ b/pgfw/extension.py @@ -172,7 +172,7 @@ def get_hue_shifted_surface(base, offset): for y in xrange(surface.get_height()): h, s, l, a = Color(*surface.unmap_rgb(pixels[x][y])).hsla if a: - color.hsla = (h + offset) % 360, s, l, a + color.hsla = (int(h) + offset) % 360, int(s), int(l), int(a) pixels[x][y] = color del pixels return surface