from manim import *
import numpy as np
def make_earth(r):
    g = VGroup(Circle(radius=r, color=BLUE_D, fill_color=BLUE_C,
                      fill_opacity=1, stroke_width=2))
    for dx, dy, w, h in ((-0.35, 0.3, 0.75, 0.5), (0.38, -0.22, 0.6, 0.42),
                         (-0.1, -0.55, 0.42, 0.26)):
        e = Ellipse(width=w * r, height=h * r, color=GREEN_B,
                    fill_opacity=1, stroke_width=0)
        e.shift(r * np.array([dx, dy, 0]))
        g.add(e)
    return g
class Demo(Scene):
    def construct(self):
        earth = make_earth(1.2)
        self.play(FadeIn(earth), run_time=0.6)
        self.play(Rotate(earth, angle=TAU, axis=IN, run_time=4.0, rate_func=linear))
        self.wait(1.0)
