Jump to content

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.