Commit 4c6893d2 authored by Shiven Bhatt's avatar Shiven Bhatt
Browse files

merge

parents 228205b8 9e6ed5d1
......@@ -4,8 +4,9 @@ from manim import *
from numpy import tri
SCREEN_WIDTH = 14.2
SCREEN_HEIGHT = 8
class Video(Scene):
class Slide1(Scene):
def construct(self):
self.image_slideshow([
(["giraffe.jpg"], 3),
......@@ -31,6 +32,30 @@ class Video(Scene):
group = Group(*all_images)
group.arrange()
return group
class SadSphere(Scene):
def construct(self):
im = ImageMobject("sad_sphere.png")
im.scale_to_fit_height(SCREEN_HEIGHT)
spacer = Text("d",font_size=90).scale(0.5).align_to(im,DOWN)
text = Text("\"I'm not smooth\" :(",color="white",font_size=90).scale(0.5).next_to(spacer,UP)
self.play(FadeIn(im))
self.wait(3)
self.play(FadeIn(text))
self.wait(3)
self.play(FadeOut(im, text))
class HappySphere(Scene):
def construct(self):
im = ImageMobject("happy_sphere.png")
im.scale_to_fit_height(SCREEN_HEIGHT)
spacer = Text("d",font_size=90).scale(0.5).align_to(im,DOWN)
text = Text("\"I'm smooth!\" :)",color="white",font_size=90).scale(0.5).next_to(spacer,UP)
self.play(FadeIn(im))
self.wait(3)
self.play(FadeIn(text))
self.wait(3)
self.play(FadeOut(im, text))
class RasterizationTriangleScene(ThreeDScene):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment