OCT
24
2008

That large mass has a tractor beam! That's not a planet... that's a deathsta--. Oh, that's planetKDE.

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.

Comments

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.


By gemuend at Fri, 10/24/2008 - 08:17

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


By Richard Moore at Fri, 10/24/2008 - 10:10

Awesome. How'd you implement yours? Squares?


By jdonenfeld at Fri, 10/24/2008 - 17:10

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


By elvstone at Fri, 10/24/2008 - 16:45

Thanks. Trebuchet MS as a font and Elegance as a plasma theme, both of which are non-default.


By jdonenfeld at Fri, 10/24/2008 - 17:10