Original file from Chevalier-Boisvert, Maxime and Willems, Lucas and Pal, Suman.

  author = {Chevalier-Boisvert, Maxime and Willems, Lucas and Pal, Suman},
  title = {Minimalistic Gridworld Environment for OpenAI Gym},
  year = {2018},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{}},


downsample(img, factor)

Downsample an image along both dimensions by some factor.

fill_coords(img, fn, color)

Fill pixels of an image with coordinates matching a filter function.

highlight_img(img_[, color, alpha])

Add highlighting to an image.

point_in_circle(cx, cy, r)

point_in_line(x0, y0, x1, y1, r)

point_in_rect(xmin, xmax, ymin, ymax)

point_in_triangle(a, b, c)

rotate_fn(fin, cx, cy, theta)