packages/pyglGA/scripts/basicCubeGUI.py
def quad(a, b, c, d):
    """create a quad out of four coordinates

    Args:
        a ([int]): [index to first vertex]
        b ([int]): [index to second vertex]
        c ([int]): [index to third vertex]
        d ([int]): [index to fourth vertex]
    """
    global index
    global colors
    global points
    global vertex_colors
    global vertices

    colors[index] = vertex_colors[a]
    points[index] = vertices[a]
    index += 1
    colors[index] = vertex_colors[b]
    points[index] = vertices[b]
    index += 1
    colors[index] = vertex_colors[c]
    points[index] = vertices[c]
    index += 1

    colors[index] = vertex_colors[a]
    points[index] = vertices[a]
    index += 1
    colors[index] = vertex_colors[c]
    points[index] = vertices[c]
    index += 1
    colors[index] = vertex_colors[d]
    points[index] = vertices[d]
    index += 1
create a quad out of four coordinates

    Args:
        a ([int]): [index to first vertex]
        b ([int]): [index to second vertex]
        c ([int]): [index to third vertex]
        d ([int]): [index to fourth vertex]
    
create a quad out of four coordinates
create a quad out of four coordinates
def quad(a, b, c, d):
    global index
    global colors
    global points
    global vertex_colors
    global vertices
    colors[index] = vertex_colors[a]
    points[index] = vertices[a]
    index += 1
    colors[index] = vertex_colors[b]
    points[index] = vertices[b]
    index += 1
    colors[index] = vertex_colors[c]
    points[index] = vertices[c]
    index += 1
    colors[index] = vertex_colors[a]
    points[index] = vertices[a]
    index += 1
    colors[index] = vertex_colors[c]
    points[index] = vertices[c]
    index += 1
    colors[index] = vertex_colors[d]
    points[index] = vertices[d]
    index += 1
def quad ( a , b , c , d ) : global index global colors global points global vertex_colors global vertices colors [ index ] = vertex_colors [ a ] points [ index ] = vertices [ a ] index += 1 colors [ index ] = vertex_colors [ b ] points [ index ] = vertices [ b ] index += 1 colors [ index ] = vertex_colors [ c ] points [ index ] = vertices [ c ] index += 1 colors [ index ] = vertex_colors [ a ] points [ index ] = vertices [ a ] index += 1 colors [ index ] = vertex_colors [ c ] points [ index ] = vertices [ c ] index += 1 colors [ index ] = vertex_colors [ d ] points [ index ] = vertices [ d ] index += 1
create a quad out of four coordinates
create a quad out of four coordinates
"""create a quad out of four coordinates

    Args:
        a ([int]): [index to first vertex]
        b ([int]): [index to second vertex]
        c ([int]): [index to third vertex]
        d ([int]): [index to fourth vertex]
    """
a
[index to first vertex]
[ index to first vertex ]
b
[index to second vertex]
[ index to second vertex ]
c
[index to third vertex]
[ index to third vertex ]
d
[index to fourth vertex]
[ index to fourth vertex ]