Vulcan #4

In my program I can interactively write C# scripts to manipulate an image. (C# is a programming language). I will describe the math behind the image using C#.

The frac() function that has been the key in the last two images is defined as

  var frac = (double a) => a - Math.Floor(a);
For the novice that is putting forth the effort to figure that out (Congratulations!): var says we are defining something new called "frac". frac is a function (=>) which takes a double (real number) as input and returns the number minus the floor. Just like I defined in Vulcan #2 using LaTex.

Today's image comes from

    var a = frac(x);
    var b = frac(y);
    pixel.value = Math.Max(a,b); 

The script is taking the largest of the x and y fraction parts. You could think of it as combining the two previous images, using whichever is brightest at each point.