Account for rgba case in point_to_rgb

This commit is contained in:
Grant Sanderson 2024-03-16 11:10:42 -03:00
parent 226d649ee6
commit fa99eafe2b

View file

@ -71,5 +71,5 @@ class ImageMobject(Mobject):
rgb = self.image.getpixel((
int((pw - 1) * x_alpha),
int((ph - 1) * y_alpha),
))
))[:3]
return np.array(rgb) / 255