示例#1
0
def shift_in_from_right(image):
    """
    Creates an animation where "image" is shifted from right
    of the display and in to the center of the display.
    """
    for i in reversed(range(DISPLAY_WIDTH + 1)):
        yield Image.shift_right(image, i)
示例#2
0
def shift_out_to_right(image):
    """
    Creates an animation where "image" is shifted from center
    of display out of the screen to the right.
    """
    for i in range(DISPLAY_WIDTH + 1):
        yield Image.shift_right(image, i)