RandomBlock.render#

RandomBlock.render(canvas: Surface, pixelsquare: float) None#

Render grid object in PyGame.

Must be implemented by each grid object type to allow visual recognition in human rendering mode.

Parameters:
  • canvas (pygame.Surface) – The PyGame window, in which the grid objects are rendered.

  • pixelsquare (float) – The size of a single square in the grid environment.