mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
minor fixes (#1737)
This commit is contained in:
parent
67f5b10626
commit
f9351536e4
6 changed files with 1 additions and 8 deletions
|
@ -1,7 +1,6 @@
|
||||||
from manimlib.animation.animation import Animation
|
from manimlib.animation.animation import Animation
|
||||||
from manimlib.animation.composition import Succession
|
from manimlib.animation.composition import Succession
|
||||||
from manimlib.mobject.types.vectorized_mobject import VMobject
|
from manimlib.mobject.types.vectorized_mobject import VMobject
|
||||||
from manimlib.mobject.mobject import Group
|
|
||||||
from manimlib.utils.bezier import integer_interpolate
|
from manimlib.utils.bezier import integer_interpolate
|
||||||
from manimlib.utils.config_ops import digest_config
|
from manimlib.utils.config_ops import digest_config
|
||||||
from manimlib.utils.rate_functions import linear
|
from manimlib.utils.rate_functions import linear
|
||||||
|
|
|
@ -17,7 +17,6 @@ class Broadcast(LaggedStart):
|
||||||
"remover": True,
|
"remover": True,
|
||||||
"lag_ratio": 0.2,
|
"lag_ratio": 0.2,
|
||||||
"run_time": 3,
|
"run_time": 3,
|
||||||
"remover": True,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, focal_point, **kwargs):
|
def __init__(self, focal_point, **kwargs):
|
||||||
|
|
|
@ -112,7 +112,7 @@ class Matrix(VMobject):
|
||||||
"\\left[",
|
"\\left[",
|
||||||
"\\begin{array}{c}",
|
"\\begin{array}{c}",
|
||||||
*height * ["\\quad \\\\"],
|
*height * ["\\quad \\\\"],
|
||||||
"\\end{array}"
|
"\\end{array}",
|
||||||
"\\right]",
|
"\\right]",
|
||||||
]))[0]
|
]))[0]
|
||||||
bracket_pair.set_height(
|
bracket_pair.set_height(
|
||||||
|
|
|
@ -13,7 +13,6 @@ from manimlib.mobject.geometry import Polygon
|
||||||
from manimlib.mobject.geometry import Polyline
|
from manimlib.mobject.geometry import Polyline
|
||||||
from manimlib.mobject.geometry import Rectangle
|
from manimlib.mobject.geometry import Rectangle
|
||||||
from manimlib.mobject.geometry import RoundedRectangle
|
from manimlib.mobject.geometry import RoundedRectangle
|
||||||
from manimlib.mobject.types.vectorized_mobject import VGroup
|
|
||||||
from manimlib.mobject.types.vectorized_mobject import VMobject
|
from manimlib.mobject.types.vectorized_mobject import VMobject
|
||||||
from manimlib.utils.config_ops import digest_config
|
from manimlib.utils.config_ops import digest_config
|
||||||
from manimlib.utils.directories import get_mobject_data_dir
|
from manimlib.utils.directories import get_mobject_data_dir
|
||||||
|
|
|
@ -277,7 +277,6 @@ class DiscreteGraphScene(Scene):
|
||||||
def trace_cycle(self, cycle=None, color="yellow", run_time=2.0):
|
def trace_cycle(self, cycle=None, color="yellow", run_time=2.0):
|
||||||
if cycle is None:
|
if cycle is None:
|
||||||
cycle = self.graph.region_cycles[0]
|
cycle = self.graph.region_cycles[0]
|
||||||
time_per_edge = run_time / len(cycle)
|
|
||||||
next_in_cycle = it.cycle(cycle)
|
next_in_cycle = it.cycle(cycle)
|
||||||
next(next_in_cycle) # jump one ahead
|
next(next_in_cycle) # jump one ahead
|
||||||
self.traced_cycle = Mobject(*[
|
self.traced_cycle = Mobject(*[
|
||||||
|
|
|
@ -287,9 +287,6 @@ class LinearTransformationScene(VectorScene):
|
||||||
},
|
},
|
||||||
"background_plane_kwargs": {
|
"background_plane_kwargs": {
|
||||||
"color": GREY,
|
"color": GREY,
|
||||||
"axis_config": {
|
|
||||||
"stroke_color": GREY_B,
|
|
||||||
},
|
|
||||||
"axis_config": {
|
"axis_config": {
|
||||||
"color": GREY,
|
"color": GREY,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue