Skip to content

Commit a4c1c4f

Browse files
Port over docs and typings from mobject.py/vectorized_mobject to their OpenGL counterparts. (#2354)
* remove event-handling from opengl_mobject.py * bring over docs for many functions * add duplicate method * port over def mobject.become * add misc docs and docs for add/remove/add_to_back * add __repr__ for opengl mobs * rename instances of Mobject->OpenGLMobject * expand functionality for OpenGLVGroup * add override animations + docs for set default * add typings for openglvmob * port docs and add proportion_from_point * remove override_animation stuff from opengl_mobject.py * make proportion_from_point work * add remainder of docs * add docs for somewhat-duplicated classes * replace VMob with OpenGLVmob * run black * remove unecessary imports * minor cleanup * run black and isort * make add_background_rectangle consistent between cairo/opengl * compatibility layer does not exist in opengl_mobs * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8194078 commit a4c1c4f

File tree

4 files changed

+1463
-196
lines changed

4 files changed

+1463
-196
lines changed

manim/mobject/mobject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ def put_start_and_end_on(self, start, end):
16321632

16331633
# Background rectangle
16341634
def add_background_rectangle(
1635-
self, color: Colors = BLACK, opacity: float = 0.75, **kwargs
1635+
self, color: Optional[Colors] = None, opacity: float = 0.75, **kwargs
16361636
):
16371637
"""Add a BackgroundRectangle as submobject.
16381638

0 commit comments

Comments
 (0)