My Octopress Blog

A blogging framework for hackers.

Graphics Project 4

It took me about three hours, but I got my fourth graphics project pretty much done. A little polish in terms of user interface, and one little feature, but that’s it.

The project is dealing with Voronoi diagrams, and so the first part was to generate a random set of points, and then the associated Voronoi diagram:

[caption id=”attachment_148” align=”aligncenter” width=”300” caption=”A Voronoi diagram”]A Voronoi diagram[/caption]

The next step was to actually create a mosaic. The idea is that the whole Voronoi region should be the color of the point on the picture that corresponds to the associated Voronoi point. At any rate, what it comes down to is pretty pictures. I’ve included the original and mosaic version for some of the pictures we were provided. [caption id=”attachment149” align=”aligncenter” width=”300” caption=”Some Columbines”]Some Columbines[/caption] [caption id=”attachment150” align=”aligncenter” width=”300” caption=”A mosaic version of the same columbines”]A mosaic version of the same columbines[/caption] [caption id=”attachment151” align=”aligncenter” width=”300” caption=”Guggenheim Hall”]Guggenheim Hall[/caption] [caption id=”attachment152” align=”aligncenter” width=”300” caption=”A mosaic of Guggenheim Hall”]A mosaic of Guggenheim Hall[/caption] [caption id=”attachment153” align=”aligncenter” width=”300” caption=”A picture of a couple of squirrels”]A picture of a couple of squirrels[/caption] [caption id=”attachment154” align=”aligncenter” width=”300” caption=”A mosaic of two squirrels”]A mosaic of two squirrels[/caption]

I’ve got others, but they are less than impressive. If you’ve got a square picture that you’d like to see made into a mosaic in this way, and I like you, send it along. Or, use any number of image editors.