mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add VMobject.get_opacity
This commit is contained in:
parent
556ffb192f
commit
349a9c9cea
1 changed files with 5 additions and 0 deletions
|
@ -329,6 +329,11 @@ class VMobject(Mobject):
|
||||||
return alphas[0] > 0
|
return alphas[0] > 0
|
||||||
return alphas.any()
|
return alphas.any()
|
||||||
|
|
||||||
|
def get_opacity(self):
|
||||||
|
if self.has_fill():
|
||||||
|
return self.get_fill_opacity()
|
||||||
|
return self.get_stroke_opacity()
|
||||||
|
|
||||||
# TODO, this currently does nothing
|
# TODO, this currently does nothing
|
||||||
def color_using_background_image(self, background_image_file):
|
def color_using_background_image(self, background_image_file):
|
||||||
self.background_image_file = background_image_file
|
self.background_image_file = background_image_file
|
||||||
|
|
Loading…
Add table
Reference in a new issue