Commit 7372cb5f authored by Shiven Bhatt's avatar Shiven Bhatt
Browse files

fade in two giraffes

parent 47d80a87
**/media/**
**/__pycache__/**
\ No newline at end of file
from manim import *
class CreateCircle(Scene):
class Slide1(Scene):
def construct(self):
circle = Circle() # create a circle
circle.set_fill(PINK, opacity=0.5) # set the color and transparency
self.play(Create(circle)) # show the circle on screen
image_no_raytracing = ImageMobject("giraffe.jpg")
image_with_raytracing = ImageMobject("giraffe2.jpg")
image_no_raytracing.set_x(-1)
image_no_raytracing.set_y(0)
image_no_raytracing.scale_to_fit_width(1)
image_with_raytracing.set_x(1)
image_with_raytracing.set_y(0)
image_with_raytracing.scale_to_fit_width(1)
self.play(FadeIn(image_no_raytracing, image_with_raytracing))
\ No newline at end of file
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