Incremental

This commit is contained in:
Sridhar Ramesh
2018-02-15 11:57:45 -08:00
parent ced8275f6e
commit e4ba832aac
2 changed files with 194 additions and 58 deletions

View File

@ -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,