Last active
March 12, 2019 02:12
-
-
Save jaddoescad/63ca3eb3af72a5c775d82c241d00fa41 to your computer and use it in GitHub Desktop.
Intro to course
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
# | |
def set_background(self): | |
background = Rectangle( | |
width = FRAME_WIDTH, | |
height = FRAME_HEIGHT, | |
stroke_width = 0, | |
fill_color = "#364658", | |
fill_opacity = 1) | |
self.add(background) | |
class IntroTitle(Scene): | |
#Adding text on the screen | |
def construct(self): | |
#define | |
set_background(self) | |
title=TextMobject("The Complete Keras Course") | |
subtitle=TextMobject("Deep Learning and Computer Vision") | |
Keras_Logo = ImageMobject("Keras_Logo") | |
hashtag=TextMobject("\#") | |
number=TextMobject("5") | |
section_title = TextMobject("Perceptron") | |
section_subtitle = TextMobject("The Perceptron Model") | |
section_number_group = VGroup(hashtag, number) | |
section_group = VGroup(section_number_group, section_title, section_subtitle) | |
shift_group = VGroup(section_group, subtitle) | |
#configure | |
title.scale(1.5) | |
number.scale(3) | |
Keras_Logo.scale(0.5) | |
#position | |
title.to_corner((UP*2) + (LEFT*2)) | |
subtitle.next_to(title, DOWN, aligned_edge=LEFT) | |
Keras_Logo.to_corner(DOWN+RIGHT) | |
number.next_to(subtitle, DOWN*6) | |
hashtag.next_to(number, (LEFT)) | |
section_title.next_to(number, RIGHT, aligned_edge= UP) | |
section_subtitle.next_to(section_title, DOWN, aligned_edge = LEFT) | |
section_group.next_to(subtitle, DOWN*6, aligned_edge = LEFT) | |
shift_group.shift(LEFT*14) | |
#animate | |
self.play(FadeIn(title)) | |
self.play(ApplyMethod(shift_group.shift, RIGHT*14), FadeIn(Keras_Logo)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment