I am not sure what is going on. This thing worked before and now it dosn't.
def generate_unity_texture(self, monKey_data):
width, height = self.texture_image.size
eye_position = (int(0.88 * width), int(0.88 * height))
ImageDraw.floodfill(unity_texture_copy, xy=eye_position , value=monKey_data['eye_color'])
return unity_texture_copy
and I get SystemError: new style getargs format but argument is not a tuple
.
The problem is in pixel[x, y] = value
and it is mentioned that the problamatic line of code is PIL\ImageDraw.py", line 349, in floodfill
This is a tuple. I even tried to replace middle with (int(middle[0]), int(middle[1])
but got the same result.
In the documentation xy
is:
xy – Seed position (a 2-item coordinate tuple).
Which is exactly what I did.
Any suggestions?