## Advanced concepts

More complex animations can be easily generated by means of combining the fundamental techniques examined previously. Notwithstanding, certain kinds of motion and certain kinds of structures are impossible to deal with without sufficient understanding of more advanced concepts—to be touched upon herein. While it is impossible to scrutinize such specialized topics in depth herein, we will attempt to have an introduction and give several examples. Readers interested in such topics may look for more specialized resources.

### Animating fractals

As far as fractals are concerned, there are lots of ways in which we can set them in motion. In the following code, for instance, we gradually animate the fractal rather than have all of it drawn at once. The idea is to start with lines of zero length and gradually extend them until the whole fractal is formed. In the fractal factory, we implemented in the previous chapter, we calculated the anchor points of all the line segments the fractal...