Image Generation (Animation)

My image generation program is run by a basic JSON interface. You give it some JSON describing what to do and it outputs and image. I decidd to leverage this to create a simple method for creating basic animations that should work with all the algorithms I develop.

The basic idea is to add a new algorithm that contains a JSON object of the input to another algorithm and a list of parameters and how to interpolate them. This allows the generation of a large number of images interpolating the parameter which make an animation.

It is quiet a nice “higher-order” image generation algorithm and produces some nice images.

Newton Ralpshon

I decided to start of testing it out with the Newton-Raphson algorithm but quickly found that the colours we assign are not stable and jumped between each frame. So i started off in black and white and made a quiet nice animation after a few tries.

Interpolation from cubic to 6th power

Greyscale Video

Colour Assignment

As part of this I thus improved and made more stable the code to assign colours in the newton raphson code. Rather than assigning a colour to a root in the order in which they are found we do 2 passes. The first gets the value and index of the root for each point (the index in order of root finding). We then order the found roots clockwise frm the one with greatest real component and assign colours to the roots. We then make the final image in a second pass with these colours.

Colour Video