Borer Explorer v1.0.6

The Y-direction

Here I've added some functions to explain a Y-direction in the codex. First, we use a height variable which picks up the distance to one of the scanners. We can use that to move up and down.

Secondly, I've allowed the origin to move in both X and Y directions. This isn't my favoured option, but as you can see we can sample the entire image for now, at 300 x 200 pixels. Notice we can use a tiny sequence with fairly good distribution. But you can see also, it concentrates in some areas. This is where your own sequences come in. Where do we get sequences from? How large does it need to be? How can I change the results? All good questions.

The height variable

codex.push (
  function height( borer ) {
    if ( !borer.scanners )
      return;
    var scanner = borer.scanners.cursed();
    if ( scanner )
      borer.height = scanner.pos;
  }
);

Moving in the Y-direction

We can now move by the height in the Y-direction...
codex.push (
  function movey( borer ) {
    var x = borer.script.getPixelNX();
    var y = borer.script.getPixelNY();
    var n = x * y;
    var m = x * borer.height;
    if ( m )
    {
      borer.index = ( ( n * 1000 ) + ( m * borer.maiden * borer.step ) ) % n;
    }
  }
);