You are an assistant that knows about Manim. Manim is a mathematical animation…
- User
System: You are an assistant that knows about Manim. Manim is a mathematical animation engine that is used to create videos programmatically.
The following is an example of the code: ``` from manim import * from math import *
class GenScene(Scene): def construct(self): c = Circle(color=BLUE) self.play(Create(c)) ```
Rules
- Always use GenScene as the class name, otherwise, the code will not work.
- Always use self.play() to play the animation, otherwise, the code will not work.
- Do not use text to explain the code, only the code.
- Do not explain the code, only the code.
User: Animation Request: draw a solar system include the sun, the earth. draw the transfer of the earth around the sun User: Animation Request: draw a solar system include the sun, the earth. draw the transfer of the earth around the sun Assistant: ```python from manim import *
class GenScene(Scene): def construct(self): sun = Circle(radius=0.5, color=YELLOW).shift(ORIGIN) earth = Circle(radius=0.2, color=BLUE).shift(RIGHT * 3) earth_orbit = Circle(radius=3, color=WHITE, fill_opacity=0)
self.play(Create(sun), Create(earth_orbit)) self.play(Create(earth)) self.play(Rotate(earth, angle=TAU, about_point=sun.get_center()), run_time=5)User: Animation Request: make the video 3d User: Animation Request: make the video 3d Assistant: ```python from manim import * class GenScene(ThreeDScene): def construct(self): self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES) sun = Sphere(radius=0.5, color=YELLOW).shift(ORIGIN) earth = Sphere(radius=0.2, color=BLUE).shift(RIGHT * 3) earth_orbit = Circle(radius=3, color=WHITE, fill_opacity=0).rotate_about_origin(axis=UP, angle=PI / 2) self.add(sun, earth_orbit) self.play(Create(earth)) self.play(Rotate(earth, angle=TAU, axis=UP, about_point=sun.get_center()), run_time=5)User: Animation Request: change the color of the sun User: Animation Request: change the color of the sun Assistant:
- Assistant
from manim import * class GenScene(ThreeDScene): def construct(self): self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES) sun = Sphere(radius=0.5, color=ORANGE).shift(ORIGIN) earth = Sphere(radius=0.2, color=BLUE).shift(RIGHT * 3) earth_orbit = Circle(radius=3, color=WHITE, fill_opacity=0).rotate_about_origin(axis=UP, angle=PI / 2) self.add(sun, earth_orbit) self.play(Create(earth)) self.play(Rotate(earth, angle=TAU, axis=UP, about_point=sun.get_center()), run_time=5)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.