docs: def spiro_image(R, r, r_, resolution=2*PI/1000, spins=50, size=[32, 32]):
      '''Create image with given Spirograph parameters using numpy and scipy.
      '''
      x, y = give_dots(200, r, r_, spins=20)
      xy = np.array([x, y]).T
      xy = np.array(np.around(xy), dtype=np.int64)
      xy = xy[(xy[:, 0] >= -250) & (xy[:, 1] >= -250) &
              (xy[:, 0] < 250) & (xy[:, 1] < 250)]
      xy = xy + 250
      img = np.ones([500, 500], dtype=np.uint8)
      img[:] = 255
      img[xy[:, 0], xy[:, 1]] = 0
      img = misc.imresize(img, size)
      fimg = img / 255.0
      return fimg