old_contents: import pygame
  from entrypoint2 import entrypoint
  
  
  @entrypoint
  def main(size=None):
      pygame.init()
      pygame.mixer.quit()  # to avoid 100 CPU load
  
      if size:
          size = map(int, size.split(":"))
          size = tuple(size)
          disp = pygame.display.set_mode(size)
      else:
          disp = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
  
      def fill(rectsize):
          w, h = pygame.display.get_surface().get_size()
          i = 0
          for x in range(0, w, rectsize):
              for y in range(0, h, rectsize):
                  r = x * 255 / w
                  g = y * 255 / h
                  b = (i % 5) * 255 / 5
                  pygame.draw.rect(disp, (r, g, b), (x, y, rectsize, rectsize))
                  i += 1
          pygame.display.update()
  
      fill(50)
  
      # open("/tmp/fillscreen_ok", "w").write("")
      pygame.image.save(disp, "/tmp/fillscreen.bmp")
  
      clock = pygame.time.Clock()
      # counter = 1
      running = True
      while running:
          for event in pygame.event.get():
              if event.type == pygame.QUIT:
                  running = False
          pygame.display.update()
          # print(counter)
          # counter += 1
          clock.tick(1)
          # sleep(5)
      pygame.quit()
  
new_contents: import pygame
  from entrypoint2 import entrypoint
  
  
  @entrypoint
  def main(size=None):
      pygame.init()
      pygame.mixer.quit()  # to avoid 100 CPU load
      pygame.mouse.set_visible(0)
      
      if size:
          size = map(int, size.split(":"))
          size = tuple(size)
          disp = pygame.display.set_mode(size)
      else:
          disp = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
  
      def fill(rectsize):
          w, h = pygame.display.get_surface().get_size()
          i = 0
          for x in range(0, w, rectsize):
              for y in range(0, h, rectsize):
                  r = x * 255 / w
                  g = y * 255 / h
                  b = (i % 5) * 255 / 5
                  pygame.draw.rect(disp, (r, g, b), (x, y, rectsize, rectsize))
                  i += 1
          pygame.display.update()
  
      fill(50)
  
      # open("/tmp/fillscreen_ok", "w").write("")
      pygame.image.save(disp, "/tmp/fillscreen.bmp")
  
      clock = pygame.time.Clock()
      # counter = 1
      running = True
      while running:
          for event in pygame.event.get():
              if event.type == pygame.QUIT:
                  running = False
          pygame.display.update()
          # print(counter)
          # counter += 1
          clock.tick(1)
          # sleep(5)
      pygame.quit()
  
subject: hide cursor