Today I tidied up my code so the program is ready to display more than one cube. At the moment there are 21 purple cubes which turns independently on the screen. Since the programming is done on a quite an old and therefore slow computer, the animation and the movie is split in two parts: There is one mode to display the animation in real time and one to write out in the movie file. The following video displays the current state of the application. If anyone has an idea how I can make the colors with youtube as shinning as on my own computer, feel free to leave a comment. Of course other replies are welcome to.