mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Remove image showing methods from mobject
This commit is contained in:
parent
525309f277
commit
ba46164b49
1 changed files with 0 additions and 16 deletions
|
@ -176,22 +176,6 @@ class Mobject(Container):
|
||||||
setattr(self, attr, func(getattr(self, attr)))
|
setattr(self, attr, func(getattr(self, attr)))
|
||||||
return self
|
return self
|
||||||
|
|
||||||
# Displaying
|
|
||||||
|
|
||||||
def get_image(self, camera=None):
|
|
||||||
# TODO, this doesn't...you know, seem to actually work
|
|
||||||
camera.clear()
|
|
||||||
camera.capture(self)
|
|
||||||
return camera.get_image()
|
|
||||||
|
|
||||||
def show(self, camera):
|
|
||||||
self.get_image(camera).show()
|
|
||||||
|
|
||||||
def save_image(self, name=None):
|
|
||||||
self.get_image().save(
|
|
||||||
os.path.join(consts.VIDEO_DIR, (name or str(self)) + ".png")
|
|
||||||
)
|
|
||||||
|
|
||||||
def copy(self):
|
def copy(self):
|
||||||
# TODO, either justify reason for shallow copy, or
|
# TODO, either justify reason for shallow copy, or
|
||||||
# remove this redundancy everywhere
|
# remove this redundancy everywhere
|
||||||
|
|
Loading…
Add table
Reference in a new issue