Blogs from friends

Arts and Photography at its Finest
BFISH
  • Hello world!
    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

The Escapist

The Escapist Forums : Threads
  • Terrorist Attack In Barcelona, Atleast 13 Dead & 100 Injured, Perpetrator Still At Large

    This is a terrible incident by asshole humans, that will no doubt be used to denounce any and all Muslims by those who never have bothered to interact with them as human beings. People love that easy type of thinking. Rather primal, unfortunately. And difficult to apply to.

    One thing that I'm not sure is bad for chuckling at earlier;

    Part of the cell is thought to have blown itself up in the early hours of Thursday morning while trying to assemble a bomb in a house in another coastal town, Alcanar Platja, 120 miles south along the coast from Barcelona.

    Casualties minimised in a form of blunt karma maybe? Aside from the second blast perhaps. Reminiscent of that Four Lions film a bit. *Le sigh* it's some sort of silver lining I guess.

  • How is Trump's latest racist thing different from his other racist stuff?

    Pseudonym:

    PsychedelicDiamond:
    I'll never for the life of me believe that anyone who voted for Trump didn't know any better. They were given all the information they needed and more. Who supported him didn't do so out of ignorance but out of malice.

    Exactly. We can keep pretending that somehow the people who vote for obvious racist airheads are really good people somehow who are just stupid or dissapointed with traditional politics in some benign way or we can admit that they probably liked the racism, the crassness, etc.

    Hillary's 'deplorables' comment was an understatement.

  • Poll: Humane response to genetic disability or Eugenics?

    I don't see anything particularly 'heroic' about choosing to raise a child with an undesirable condition. It is pointless to be sentimental about particular possible futures involving people who don't really exist in any meaningful sense yet. It is not evil to avoid raising children and neither is it evil to have and enforce a preference about what sort of children to raise. If a woman would rather have a different baby than the one in her womb, just abort and make another one. If that means in practice that there will be no more babies born with various genetic afflictions, why should that bother anyone?

Voronoi tiling art PDF Print E-mail
Written by Mat   
Wednesday, 30 September 2009 20:23

These tessellations have all been generated by a very simple FreeBASIC program that I wrote.

I stumbled upon this algorithm while searching for a way to generate stochastic terrain heightmaps for a 3D strategy game, and realised that it could be made to produce pretty 2D pictures.

See: Voronoi diagram at Wikipedia.

The algorithm is as follows: start by placing a number of control points in random positions in the image, and assign each one a primary colour. Then for each pixel of the image, the colour of that pixel is set to the colour of its nearest control point, and the brightness of the pixel is set to the difference between the distance from the pixel to its nearest control point and the distance from the pixel to its next nearest control point.

Numerous variations on the algorithm exist: instead of using control points, other geometric objects can be used such as line segments or circles, which both result in curved edges. Also, instead of using Pythagoras to compute the distances, other methods can be used such as the Manhattan metric or the chessboard metric, and these result in more right angles.

It is possible to achieve a finer granularity in the spectrum of colours used, by mixing together two or more layers of tilings with various weights and numbers of control points.

Tiling Tiling Tiling
Tiling Tiling Tiling
Tiling Tiling Tiling

Last Updated on Thursday, 01 October 2009 20:12