Skip to content

a light python library to create and visualize grids

Notifications You must be signed in to change notification settings

iMilchshake/GridVisualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Grid Visualizer

a light python library to create and visualize grids

Features

  • stable and fast grid datatype
  • dynamic window size
  • customizable color schemes
  • easy to implement

Example

    from pygame import event, time
    from GridVisualizer import Visualizer, Grid
    
    if __name__ == "__main__":
        grid = Grid(25, 25)
        visualizer = Visualizer(grid, 500, 500, 1)
        clock = time.Clock()
        fps = 15
    
        while True:
            grid.setRndValues(0, 1)  # fill grid with random values
            visualizer.handle_events(event.get())  # let the visualizer handle events (quit, resizing)
            visualizer.update()  # show new grid
            clock.tick(fps)  # wait to match desired fps

About

a light python library to create and visualize grids

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages