hue shift int

This commit is contained in:
Frank DeMarco 2018-04-15 03:17:31 -04:00
parent 1b2878e2a3
commit c6e2f85edd
1 changed files with 1 additions and 1 deletions

View File

@ -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