mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Account for rgba case in point_to_rgb
This commit is contained in:
parent
226d649ee6
commit
fa99eafe2b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue