mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Revert broken change from main in OpenGLMobject.get_opacity()
This commit is contained in:
parent
d1b7d20c65
commit
715b61168e
1 changed files with 1 additions and 2 deletions
|
|
@ -2299,8 +2299,7 @@ class OpenGLMobject:
|
|||
return self.color
|
||||
|
||||
def get_opacity(self) -> float:
|
||||
rv: float = self.rgbas[0, 3]
|
||||
return rv
|
||||
return self.color.opacity()
|
||||
|
||||
def set_color_by_gradient(self, *colors: ParsableManimColor):
|
||||
self.set_submobject_colors_by_gradient(*colors)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue