mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add count in from
This commit is contained in:
parent
d5b2160c64
commit
b0aacda655
1 changed files with 10 additions and 0 deletions
|
@ -50,3 +50,13 @@ class ChangeDecimalToValue(ChangingDecimal):
|
|||
lambda a: interpolate(start_number, target_number, a),
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
||||
class CountInFrom(ChangingDecimal):
|
||||
def __init__(self, decimal_mob, source_number=0, **kwargs):
|
||||
start_number = decimal_mob.number
|
||||
super().__init__(
|
||||
decimal_mob,
|
||||
lambda a: interpolate(source_number, start_number, a),
|
||||
**kwargs
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue