def set_node_animation(index, node, parent):
    """Set objects and assign anim. behaviour to node."""
    ### create/reference objects to assist in animation

    d = deque(POINTS)
    d.rotate(index * MULTIPLICAND)

    parent_rect = parent.rect
    node_rect = node.rect

    ### define animation behaviour

    def update():

        ## calculate and assign new center for node
        node_rect.center = parent_rect.topright + NODES_OFFSET + d[0]

        ## rotate points in deque
        d.rotate(1)

    ### assign the animation behaviour to the node
    node.update = update
Set objects and assign anim. behaviour to node.
nodezator/splashscreen/animsetup.py