mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 05:52:34 +08:00
Incremental
This commit is contained in:
@ -8,7 +8,7 @@ from helpers import *
|
||||
|
||||
from animation import Animation
|
||||
from mobject import Mobject, Point, VMobject, Group
|
||||
from topics.geometry import Dot
|
||||
from topics.geometry import Dot, Circle
|
||||
|
||||
class Transform(Animation):
|
||||
CONFIG = {
|
||||
@ -214,6 +214,17 @@ class Indicate(Transform):
|
||||
target.highlight(self.color)
|
||||
Transform.__init__(self, mobject, target, **kwargs)
|
||||
|
||||
class HighlightCircle(Indicate):
|
||||
CONFIG = {
|
||||
"rate_func" : squish_rate_func(there_and_back, 0, 0.8),
|
||||
"remover" : True
|
||||
}
|
||||
def __init__(self, mobject, **kwargs):
|
||||
digest_config(self, kwargs)
|
||||
circle = Circle(color = self.color, **kwargs)
|
||||
circle.surround(mobject)
|
||||
Indicate.__init__(self, circle, **kwargs)
|
||||
|
||||
class Rotate(ApplyMethod):
|
||||
CONFIG = {
|
||||
"in_place" : False,
|
||||
|
Reference in New Issue
Block a user