mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Specify default about_edge for Rotate
This commit is contained in:
parent
8b83c5e27d
commit
098b939ec0
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ from manimlib.animation.animation import Animation
|
||||||
from manimlib.constants import OUT
|
from manimlib.constants import OUT
|
||||||
from manimlib.constants import PI
|
from manimlib.constants import PI
|
||||||
from manimlib.constants import TAU
|
from manimlib.constants import TAU
|
||||||
|
from manimlib.constants import ORIGIN
|
||||||
from manimlib.utils.rate_functions import linear
|
from manimlib.utils.rate_functions import linear
|
||||||
from manimlib.utils.rate_functions import smooth
|
from manimlib.utils.rate_functions import smooth
|
||||||
|
|
||||||
|
@ -37,6 +38,7 @@ class Rotate(Rotating):
|
||||||
CONFIG = {
|
CONFIG = {
|
||||||
"run_time": 1,
|
"run_time": 1,
|
||||||
"rate_func": smooth,
|
"rate_func": smooth,
|
||||||
|
"about_edge": ORIGIN,
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, mobject, angle=PI, axis=OUT, **kwargs):
|
def __init__(self, mobject, angle=PI, axis=OUT, **kwargs):
|
||||||
|
|
Loading…
Add table
Reference in a new issue