예제 #1
0
    def __init__(self, start):
        self.startTime = start
        self.stopTime = start + 690
        self.list = []
        self.list.append(still(start))
        self.list.append(emoticon(start + 230))
        self.list.append(animation3D(start + 430))
        self.list.append(zoom(start + 330))
        self.list.append(
            Transitions.blender(
                None,
                cairo.ImageSurface.create_from_png(
                    "./images/penmujer_smiling.png"), start + 670, 20))
        self.list.append(OneThought(start, 500, True))
        self.list.append(
            Transitions.blender(
                None,
                cairo.ImageSurface.create_from_png(
                    "./images/bgCallForAction.png"), start + 420, 10))
        self.list.append(text(start + 50, 190, 50, self.phrase1, (110, 240)))
        self.list.append(text(start + 290, 90, 50, self.phrase2, (250, 280)))

        self.list.append(stickman(start + 430))

        # self.list.append(leaf(start + 430, start + 440, 200, cairo.ImageSurface.create_from_png("./images/leaf1.png")))
        self.list.append(
            leafText(start + 595, 75, self.phrase3, (300 - 40, 190)))
        # self.list.append(leaf(start + 430, start + 510, 300, cairo.ImageSurface.create_from_png("./images/leaf2.png")))
        self.list.append(
            leafText(start + 515, 75 + 80, self.phrase4, (300 - 40, 330)))
        # self.list.append(leaf(start + 430, start + 590, 400, cairo.ImageSurface.create_from_png("./images/leaf3.png")))
        self.list.append(
            leafText(start + 445, 75 + 150, self.phrase5, (300 - 40, 470)))
예제 #2
0
 def __init__(self, start):
     self.startTime = start
     self.stopTime = start + 690
     self.list = []
     self.list.append(still(start))
     self.list.append(emoticon(start + 230))
     self.list.append(animation3D(start + 430))
     self.list.append(zoom(start + 330))
     self.list.append(
         Transitions.blender(None, Image.open("./images/base14.png"),
                             start + 670, 20))
     self.list.append(OneThought(start, 500, True))
     self.list.append(
         Transitions.blender(None, Image.open("./images/base13b.png"),
                             start + 420, 10))
     self.list.append(text(start + 50, 190, 50, self.phrase1, (110, 240)))
     self.list.append(text(start + 290, 90, 50, self.phrase2, (250, 280)))
     self.list.append(
         leaf(start + 430, start + 440, 200,
              Image.open("./images/leaf1.png")))
     self.list.append(leafText(start + 445, 75, self.phrase3, (300, 200)))
     self.list.append(
         leaf(start + 430, start + 510, 300,
              Image.open("./images/leaf2.png")))
     self.list.append(leafText(start + 515, 75, self.phrase4, (300, 300)))
     self.list.append(
         leaf(start + 430, start + 590, 400,
              Image.open("./images/leaf3.png")))
     self.list.append(leafText(start + 595, 75, self.phrase5, (300, 400)))
예제 #3
0
 def __init__(self, start):
     self.startTime = start
     self.stopTime = start + 150
     self.blenders = []
     hidalgo = Image.open("./images/hidalgo.png")
     mezquital = Image.open("./images/mezquital.png")
     huasteca = Image.open("./images/huasteca.png")
     otomi = Image.open("./images/otomi.png")
     self.blenders.append(Transitions.blender(hidalgo, mezquital, start, 25))
     self.blenders.append(Transitions.blender(mezquital, huasteca, start + 25, 25))
     self.blenders.append(Transitions.blender(huasteca, otomi, start + 50, 25))
예제 #4
0
 def set_language(self, language):
     ':type language: languages'
     if language == Languages.ENGLISH:
         self.transition = Transitions.blender(
             None,
             cairo.ImageSurface.create_from_png(
                 "./images/credits_english.png"), self.start, 40)
     elif language == Languages.SPANISH:
         self.transition = Transitions.blender(
             None,
             cairo.ImageSurface.create_from_png(
                 "./images/credits_spanish.png"), self.start, 40)
예제 #5
0
 def __init__(self, start):
     self.startTime = start
     self.stopTime = start + 160
     self.blenders = []
     otomi = Image.open("./images/otomi_close.png")
     acaxochitlan = Image.open("./images/acaxochitlan.png")
     tenango = Image.open("./images/tenango.png")
     bartolo = Image.open("./images/bartolo.png")
     huehuetla = Image.open("./images/huehuetla.png")
     self.blenders.append(Transitions.blender(otomi, acaxochitlan, start, 40))
     self.blenders.append(Transitions.blender(acaxochitlan, tenango, start + 40, 40))
     self.blenders.append(Transitions.blender(tenango, bartolo, start + 80, 40))
     self.blenders.append(Transitions.blender(bartolo, huehuetla, start + 120, 40))
예제 #6
0
 def __init__(self, start):
     self.startTime = start
     self.stopTime = start + 150
     self.blenders = []
     hidalgo = cairo.ImageSurface.create_from_png(
         "./images/map/hidalgo.png")
     mezquital = cairo.ImageSurface.create_from_png(
         "./images/map/mezquital.png")
     huasteca = cairo.ImageSurface.create_from_png(
         "./images/map/huasteca.png")
     otomi = cairo.ImageSurface.create_from_png("./images/map/otomi.png")
     self.blenders.append(Transitions.blender(hidalgo, mezquital, start,
                                              25))
     self.blenders.append(
         Transitions.blender(mezquital, huasteca, start + 25, 25))
     self.blenders.append(
         Transitions.blender(huasteca, otomi, start + 50, 25))
예제 #7
0
 def __init__(self, start):
     self.startTime = start
     self.stopTime = start + 585
     self.list = [zoom(start, self.phrase1)]
     self.list.append(regions(start + 240))
     self.list.append(zoom2(start + 315))
     self.list.append(areas(start + 385))
     self.list.append(text2(start + 315, self.phrase2))
     self.list.append(
         Transitions.blender(Image.open("./images/huehuetla.png"), Helpers.open_image("./images/base4.png", 190),
                             start + 545, 40))
예제 #8
0
 def __init__(self, start):
     self.startTime = start
     self.stopTime = start + 265
     self.list = []
     self.list.append(still(start))
     self.list.append(text(start, 265, self.phrase1, (310, 50)))
     self.list.append(text(start + 85, 195, self.phrase2, (310, 600)))
     self.list.append(
         text(start + 85 + 44, 151, self.phrase3, (310 + 252 + 1 * 210, 600 + 50),
              slow=0, color=(80, 147, 205)))
     self.list.append(Transitions.blender(None, Image.open("./images/base16_spanish.png"), start + 225, 40))
예제 #9
0
 def __init__(self, start):
     self.startTime = start
     self.stopTime = start + 160
     self.blenders = []
     otomi = cairo.ImageSurface.create_from_png(
         "./images/map/otomi_close.png")
     acaxochitlan = cairo.ImageSurface.create_from_png(
         "./images/map/acaxochitlan.png")
     tenango = cairo.ImageSurface.create_from_png(
         "./images/map/tenango.png")
     bartolo = cairo.ImageSurface.create_from_png(
         "./images/map/bartolo.png")
     huehuetla = cairo.ImageSurface.create_from_png(
         "./images/map/huehuetla.png")
     self.blenders.append(
         Transitions.blender(otomi, acaxochitlan, start, 40))
     self.blenders.append(
         Transitions.blender(acaxochitlan, tenango, start + 40, 40))
     self.blenders.append(
         Transitions.blender(tenango, bartolo, start + 80, 40))
     self.blenders.append(
         Transitions.blender(bartolo, huehuetla, start + 120, 40))
예제 #10
0
 def __init__(self, start):
     self.startTime = start
     self.stopTime = start + 355 + 160 + 40
     self.list = [zoom(start, self.phrase1)]
     self.list.append(regions(start + 170))
     self.list.append(zoom2(start + 245))
     self.list.append(areas(start + 355))
     self.list.append(text2(start + 245, self.phrase2))
     self.list.append(
         Transitions.blender(
             cairo.ImageSurface.create_from_png(
                 "./images/map/huehuetla.png"),
             Helpers.open_image("./sequences/pullWall2/frame0.png", 190),
             start + 355 + 160, 40))
예제 #11
0
 def __init__(self, start):
     self.start = start
     self.transition = Transitions.blender(
         None,
         cairo.ImageSurface.create_from_png("./images/credits_english.png"),
         self.start, 40)