Python 3/PyGame/representations_with_matrixes/repr2d.py
def display(self):
        """ Draw the objects on the screen. """
        self.screen.fill(self.background)
        #display the grid
        if self.displayGridLines:
            for i in range(len(self.grid)):
                pygame.draw.aaline(self.screen, self.grid_line_color, (self.grid[i][0], self.grid[i][1]), (self.grid[i][0]+int(self.width/10), self.grid[i][1]), 1)
                pygame.draw.aaline(self.screen, self.grid_line_color, (self.grid[i][0], self.grid[i][1]), (self.grid[i][0], self.grid[i][1]+int(self.height/10)), 1)

        if self.displayLines:
            for vector in self.vectors:
                pygame.draw.aaline(self.screen, self.line_color, self.center, (self.center[0]+vector[0]*20, self.center[1]+vector[1]*20), 1)

        # for thing in self.objects.values():
        #     # if thing.displayEdges:
        #     #     for edge in thing.edges:
        #     #         pygame.draw.aaline(self.screen, self.line_color, (edge.start.x, edge.start.y), (edge.end.x, edge.end.y), 1)
        #     for edge in thing.edges:
        #             pygame.draw.aaline(self.screen, thing.edge_color, (edge.start.x, edge.start.y), (edge.end.x, edge.end.y), 1)
        #     # if thing.displayNodes:
        #     #     for node in thing.nodes:
        #     #         pygame.draw.circle(self.screen, self.point_color, (int(node.x), int(node.y)), self.nodeRadius, 0)
        #     for node in thing.nodes:
        #         pygame.draw.circle(self.screen, thing.node_color, (int(node.x), int(node.y)), self.nodeRadius, 0)
 Draw the objects on the screen. 
Draw the objects on the screen.
Draw the objects on the screen .
def display(self):
        self.screen.fill(self.background)
        if self.displayGridLines:
            for i in range(len(self.grid)):
                pygame.draw.aaline(self.screen, self.grid_line_color, (self.grid[i][0], self.grid[i][1]), (self.grid[i][0]+int(self.width/10), self.grid[i][1]), 1)
                pygame.draw.aaline(self.screen, self.grid_line_color, (self.grid[i][0], self.grid[i][1]), (self.grid[i][0], self.grid[i][1]+int(self.height/10)), 1)
        if self.displayLines:
            for vector in self.vectors:
                pygame.draw.aaline(self.screen, self.line_color, self.center, (self.center[0]+vector[0]*20, self.center[1]+vector[1]*20), 1)
def display ( self ) : self . screen . fill ( self . background ) if self . displayGridLines : for i in range ( len ( self . grid ) ) : pygame . draw . aaline ( self . screen , self . grid_line_color , ( self . grid [ i ] [ 0 ] , self . grid [ i ] [ 1 ] ) , ( self . grid [ i ] [ 0 ] + int ( self . width / 10 ) , self . grid [ i ] [ 1 ] ) , 1 ) pygame . draw . aaline ( self . screen , self . grid_line_color , ( self . grid [ i ] [ 0 ] , self . grid [ i ] [ 1 ] ) , ( self . grid [ i ] [ 0 ] , self . grid [ i ] [ 1 ] + int ( self . height / 10 ) ) , 1 ) if self . displayLines : for vector in self . vectors : pygame . draw . aaline ( self . screen , self . line_color , self . center , ( self . center [ 0 ] + vector [ 0 ] * 20 , self . center [ 1 ] + vector [ 1 ] * 20 ) , 1 )
Draw the objects on the screen.
Draw the objects on the screen .
""" Draw the objects on the screen. """ #display the grid # for thing in self.objects.values(): #     # if thing.displayEdges: #     #     for edge in thing.edges: #     #         pygame.draw.aaline(self.screen, self.line_color, (edge.start.x, edge.start.y), (edge.end.x, edge.end.y), 1) #     for edge in thing.edges: #             pygame.draw.aaline(self.screen, thing.edge_color, (edge.start.x, edge.start.y), (edge.end.x, edge.end.y), 1) #     # if thing.displayNodes: #     #     for node in thing.nodes: #     #         pygame.draw.circle(self.screen, self.point_color, (int(node.x), int(node.y)), self.nodeRadius, 0) #     for node in thing.nodes: #         pygame.draw.circle(self.screen, thing.node_color, (int(node.x), int(node.y)), self.nodeRadius, 0)
self