Following up previous post, I've decided to add some motion.
The process of image generation will remain mostly the same. To introduce some action, we will change exponent value in time.
Let's start with precomputing fractals data.
Execution of this code requires ~2G of memory, so be careful. Singles are used to reduce memory consumption. Calls to clear function serve the same purpose. More efficient way is to create and write to file one image at a time. That should reduce memory requirements in half a thousand times. But having all the data precomputed gives more flexibility for representation and allows to generate sophisticated images based on some other time axis.
Next part is saving animation to GIF file.
- d = 256;
- dt = 0.03;
- filename = 'image.gif';
- for L = 1:len_l
- if L==1
This code is based on Matalb documentation for imwrite function. In Octave (at least in 3.6.4) this code doesn't work. After some changes it executes with warning, but produces GIF with only one image. A possible workaround is to write separate image for each frame and then combine them in one GIF using some other tool.
As a result, you'll get the following animation (warning, size: ~35M): GIF-file.