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()):
|
for y in xrange(surface.get_height()):
|
||||||
h, s, l, a = Color(*surface.unmap_rgb(pixels[x][y])).hsla
|
h, s, l, a = Color(*surface.unmap_rgb(pixels[x][y])).hsla
|
||||||
if a:
|
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
|
pixels[x][y] = color
|
||||||
del pixels
|
del pixels
|
||||||
return surface
|
return surface
|
||||||
|
|
Loading…
Reference in New Issue