def adjacent_lines_indexes(indexes):
    """Given a sequence of vertices indexes, return the indexes to be used with
    GL_LINES_ADJACENCY in order to draw lines between them in a strip.\n
    Example:
    (0, 1, 2, 3) ->
    (
        0, 0, 1, 2,
        0, 1, 2, 3,
        1, 2, 3, 3
    )
    """
    assert len(indexes) >= 2

    indexes = (indexes[0], *indexes, indexes[-1])
    lines_idx = []
    for line_idx in zip(*(indexes[i:] for i in range(4))):
        lines_idx += line_idx

    return lines_idx