mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 15:07:46 +00:00
Ensure get_opacity returns float
This commit is contained in:
parent
7b577e9fc1
commit
5632fee9a3
1 changed files with 1 additions and 1 deletions
|
|
@ -1376,7 +1376,7 @@ class Mobject(object):
|
|||
return rgb_to_hex(self.data["rgba"][0, :3])
|
||||
|
||||
def get_opacity(self) -> float:
|
||||
return self.data["rgba"][0, 3]
|
||||
return float(self.data["rgba"][0, 3])
|
||||
|
||||
def set_color_by_gradient(self, *colors: ManimColor) -> Self:
|
||||
if self.has_points():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue