Manim: ValueTracker must support increment also using +=

Created on 2 Oct 2020  路  6Comments  路  Source: ManimCommunity/manim

Just what the title says. Here's an example

class Test(Scene):
    def construct(self):
        tracker = ValueTracker(0.0)
        tracker.set_value(2.0)
        print(tracker.get_value()) # -> 2.000
        tracker.increment_value(3.0)
        print(tracker.get_value()) # -> 5.000
        tracker += 4.0 # NEW proposed feature
        print(tracker.get_value()) # -> 9.000
enhancement good first issue

All 6 comments

Very good idea. I would love to see a PR :) #

Hey, @huguesdevimeux I can take this if it's still open.

Hi @SamMinkowicz,
We all appreciate your willingness to help the Manim Community out, but unfortunately I already started working on it and just opened a PR a minute ago before seeing your comment. You can still help us out by maybe giving suggestions on that PR :)

@naveen521kk Please please assign yourself when you're working on an issue.

Yeah @huguesdevimeux , I forgot, my bad. Will keep it in mind now.

@naveen521kk Please please assign yourself when you're working on an issue

I'm not working on this. I think you have pinged me wrongly. @huguesdevimeux

Was this page helpful?
0 / 5 - 0 ratings

Related issues

naveen521kk picture naveen521kk  路  5Comments

leotrs picture leotrs  路  5Comments

huguesdevimeux picture huguesdevimeux  路  7Comments

huguesdevimeux picture huguesdevimeux  路  5Comments

qo4on picture qo4on  路  6Comments