documentation index ◦ reference manual ◦ function index

# define.move_transitions

Function: | define.move_transitions | (prefix, delay, time_warp=None, in_time_warp=None, out_time_warp=None, layers=['master'], **kwargs):

This defines a family of move transitions, similar to the move and ease transitions. For a given prefix, this defines the transitions:

- prefix - A transition that takes delay seconds to move images that changed positions to their new locations.

- prefixinleft, prefixinright, prefixintop, prefixinbottom - A transition that takes delay seconds to move images that changed positions to their new locations, with newly shown images coming in from the appropriate side.

- prefixoutleft, prefixoutright, prefixoutop, prefixoutbottom - A transition that takes delay seconds to move images that changed positions to their new locations, with newly hidden images leaving via the appropriate side.

time_warp, in_time_warp, out_time_warp - The time_warp argument supplied to Move for images remaining on the screen, newly shown images, and newly hidden images (respectively).

old - Causes the transitions to move the old displayables, rather than the new ones.

layers - The layers the transition will apply to.

Additional keyword arguments are passed (indirectly) to the moves. The most useful additional keyword argument is probably subpixel=True, which causes a subpixel move to be used.

## Example

    init:
        $ define.move_transitions('realslowmove', 5.0, subpixel=True)

    start:
        show eileen happy
        with realslowmoveinright

documentation index ◦ reference manual ◦ function index