def mandelbrot_gray(matrix, output_file_name):
"""Generates a grayscale version of the Mandelbrot Set
Writes its output file to output_file_name
Args:
matrix: np.array, 2D array representing the mandelbrot set
output_file_name: string, filename to write image to
"""
print("\nWriting image to:", output_file_name)
skimage.io.imsave(output_file_name, matrix)
评论列表
文章目录