You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone I need your help.
This is coce that I find on youtube. I want decimal number rotate (or set at angle = 90*Degrees) while it change. Please help me because I'm a newbie.
from manim import *
class ChangingDecimalExample(Scene):
def construct(self):
number = DecimalNumber(0).scale(2).rotate(90*DEGREES)
def update_func(t):
return t * 10
self.wait()
self.play(ChangingDecimal(number, update_func), run_time=3)
self.wait()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone I need your help.
This is coce that I find on youtube. I want decimal number rotate (or set at angle = 90*Degrees) while it change. Please help me because I'm a newbie.
from manim import *
class ChangingDecimalExample(Scene):
def construct(self):
number = DecimalNumber(0).scale(2).rotate(90*DEGREES)
def update_func(t):
return t * 10
self.wait()
self.play(ChangingDecimal(number, update_func), run_time=3)
self.wait()
Beta Was this translation helpful? Give feedback.
All reactions