Vulcan #5

The program code today is a little more complex (bad pun groan). Pixels on the screen are actually mapped to complex numbers. Complex numbers are pairs of real number, called the real and imaginary parts. Here z is set to pixel.point, complex number corresponding the the pixel under consideration. The x and y components are extracted from z, then a and b are set to the fractional parts, and used to set pixel.value.

    var z = pixel.point;
    var x = z.Real;
    var y = z.Imaginary;
    var a = frac(x);
    var b = frac(y);
    pixel.value = Math.Min(a,b); 

Most of the time, I won't show this full block, and just use x and y. But if you see a complex number, z, sneaking in, this is where is came from.

Compared to yesterday's image, Min instead of Max. Same color scheme.