from manim import *

tex = MathTex("z", "=", r"\sqrt{", "x", "^2 + ", "y", "^2}")
tex.set_color_by_tex("x", RED)
tex.set_color_by_tex("y", GREEN)
tex.set_color_by_tex("z", BLUE)
