I’ve been watching the development of KDE for a while, submitting bug reports and testing trunk, and last night I made my first patch. I received an svn account and decided to start working on Amarok 2, for which I’m currently fixing this bug. But I also intend to work on other areas of KDE, after I poke around for a while and learn the general layout of the project. Suggestions? To begin, I think I might start investigating this bug. I also work on the Arora Browser.

Speaking of projects, to learn more about Qt’s painting system, I wrote a program that generates the Sierpiński triangle using a chaos game. Pick three vertices of a triangle. Plot a point at random inside that triangle. Choose a vertex of the triangle at random and plot the midpoint between the chosen vertex and the previous point plotted. Repeat this ad infinitum and you get:

I don’t think that I’ve implemented the drawing in the most ideal way, so please leave suggestions. I opted to use a QImage instead of a QPainter, and then just fill pixels and scale. You can browse the source, checkout the repository with git clone http://git.zx2c4.com/trianglefractalchaos.git, or download a tarball.

Currently I’m running 4.1.2, but I plan to switch completely over to trunk in the next few weeks. Here’s my default clean desktop:

The large note on the left is about a few ideas for a shared-server-plan based file sharing mini-network. Maybe I’ll say more on this another time if I end up implementing it.

Hello planetKDE.

October 23, 2008 · [Print]

6 Comments to “That large mass has a tractor beam! That’s not a planet… that’s a deathsta–. Oh, that’s planetKDE.”

  1. gemuend says:

    I didn’t even know that way of creating a sierpinski triangle. Thats interesting. But there must surely be points in wrong areas if you plot the random point itself? I also like the L-System to draw a sierpinski triangle. Always fascinates me, thinking about fractals. :-)
    By the way, you seem to be full of ideas, which is great!
    Have a good time.

  2. rich says:

    I coded up a similar sierpinski gasket app a few weeks back. A few tweaks and you can get squares etc. to work too.

  3. elvstone says:

    What font are you using? Is it Calibri from Microsoft? Looks nice! Also what Plasma theme is that? Not the default right?

  4. @gemuend
    The initial random point will not necessarily be correct, yes. Actually, the initial random point doesn’t even have to be inside the triangle, and the subsequent plotted points will still find their way inside of it.

    @rich
    Squares? Awesome- how’d you implement yours?

    @elvstone
    I use Trebuchet MS as a font and Elegance as a plasma theme, both of which are non-default.

  5. Jorge says:

    nao sei o que ta acontecendo mas seu site ta estranho visualizando no ie, tem certeza que configurou certo? bom pode ser um bug aqui também

Leave a Reply