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