Issue
I'm starting with this scene from a tutorial.
class BasicProgression(Scene):
def construct(self):
text = Text("Hello word")
self.play(Write(text))
self.play(text.animate.set_color(RED))
self.wait()
From what I understand, the 2nd last line could be replaced with self.play(text.animate.set_color(RED))
.
What is the difference, if there is any? Is one method faster?
Solution
I guess it's just a shorthand notation:
https://docs.manim.community/en/stable/_modules/manim/animation/transform.html#FadeToColor
Answered By - SOReader
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.