Voronoi diagram: Difference between revisions

Line 2,151:
# Export an RGB image
rgb = colors[labels]
img = Image.fromarray(rgb, mode='RGB').save('VoronoiDiagram.png', 'PNG')
img.save('VoronoiDiagram.png', 'PNG')
img.show()
return rgb
</syntaxhighlight>
4

edits