Commit 89510f22 authored by Ethan Fisher's avatar Ethan Fisher
Browse files

4_9_13_done

parent 3e572ee1
......@@ -11,8 +11,8 @@ class Slide:
class Slides(Scene):
def construct(self):
def get_spaced_text(text, im):
spacer = Text("d",font_size=90).scale(0.5).align_to(im,DOWN)
def get_spaced_text(text, im, spacing=0.5):
spacer = Text("d",font_size=90).scale(spacing).align_to(im,DOWN)
return Text(text,color="white",font_size=90).scale(0.5).next_to(spacer, UP)
def get_sphere_slide(im_path, text, durations):
......@@ -22,13 +22,24 @@ class Slides(Scene):
get_spaced_text(text, im)
], durations)
'''def get_comparison_slide(paths, texts, durations):
images = []
for path in paths:
images.append(ImageMobject(path).scale_to_fit_height(SCREEN_HEIGHT))'''
cheapo_group = self.get_image_group(["monte_carlo_one.png", "monte_carlo_vando.png", "monte_carlo_many.png"])
slides = [
#Slide([self.get_image_group(["raster_vs_raytrace.webp"])], [1]),
#get_sphere_slide("sad_sphere.png", "\"I'm not smooth\" :(", [1, 1]),
#get_sphere_slide("happy_sphere.png", "\"I'm smooth!\" :)", [1, 1]),
Slide([self.get_image_group(["raster_vs_raytrace.webp"])], [1]),
get_sphere_slide("sad_sphere.png", "\"I'm not smooth\" :(", [1, 1]),
get_sphere_slide("happy_sphere.png", "\"I'm smooth!\" :)", [1, 1]),
Slide([self.get_image_group(["vindow_light_transfer.jpg"])], [1]),
Slide([self.get_image_group(["vindow_light_same.jpg"])], [1]),
Slide([self.get_image_group(["vindow_function_angle.jpg"])], [1])
Slide([self.get_image_group(["vindow_function_angle.jpg"])], [1]),
Slide([self.get_image_height("monte_carlo_vando.png")], [1]),
Slide([self.get_image_height("monte_carlo_bouncing.png")], [1]),
Slide([cheapo_group, get_spaced_text("one sample random samples many samples", cheapo_group, spacing=0.1)], [1,1,1,1]),
Slide([self.get_image_height("monte_carlo_bouncing_infinite.png")], [1]),
Slide([self.get_image_height("monte_carlo_path_tracing.png")], [1]),
]
self.slideshow(slides)
......@@ -52,6 +63,9 @@ class Slides(Scene):
group.arrange()
return group
def get_image_height(self, path):
return ImageMobject(path).scale_to_fit_height(SCREEN_HEIGHT)
class Title(Scene):
def construct(self):
t2 = Text("d",color="black",font_size=90).scale(0.25)
......
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