from manim import *
class IntegerDemo(Scene):
    def construct(self):
        head = Text("Integer: set_color / set_color_by_gradient", font="Consolas", font_size=26, color=YELLOW).to_edge(UP)
        x = Integer(123).set_color(RED).scale(1.4).shift(LEFT * 2.5 + DOWN * 0.5)
        y = Integer(321123).set_color_by_gradient(BLUE_E, YELLOW_E).scale(1.4).shift(RIGHT * 2 + DOWN * 0.5)
        self.add(head)
        self.play(FadeIn(x), run_time=1.0)
        self.play(FadeIn(y), run_time=1.0)
        self.wait(3.6)
