Voronoi diagram: Difference between revisions
Content added Content deleted
Superbatfish (talk | contribs) |
Superbatfish (talk | contribs) |
||
Line 2,151:
# Export an RGB image
rgb = colors[labels]
img = Image.fromarray(rgb, mode='RGB
img.save('VoronoiDiagram.png', 'PNG')
img.show()
return rgb
</syntaxhighlight>
|