hue shift int
This commit is contained in:
parent
1b2878e2a3
commit
c6e2f85edd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue