def ft_generate_center(topics_amount):
    """
    Generates a list of lists used to set the center for each layout.
    Displays topics in rows of 5.
    """
    x = 0
    y = 0
    center_list = [[x, y]]
    for i in range(topics_amount - 1):
        if ((i + 1) % 5 == 0):
            x = 0
            y -= 5
        else:
            x += 5
        center_list.append([x, y])
    return center_list