This is a simple pairing function visualizer.
You can access the current version here.
The default grid length is set to 12 simply because it is the largest grid size that can be comfortably rendered in a mobile view.
When the window is resized, the grid length adjusts to fit in the window. The max grid length is determined by the size of the window. One hacky way to increase the grid length when it is at its max is to zoom out of your window, then try incrementing again. These restrictions are really only put in place to keep the grid inside the screen.
In the future, if I can figure out how, I might try to make it so that the grid cells scale down if the grid length is increased while the grid is already filling the display.
The default starting number depends on the pairing function selected. Some start at 0, others start at 1.
Incrementing the starting number essentially just adds 1 to each cell in the grid. The feature was mostly intended to be used along with highlighting. For example, when prime highlighting is toggled on, incrementing the start number makes it easier to visualize the path they are walking on along the shells of the grid.
Moreover, incrementing the start number while a highlight is toggled on reconfigures the placement of the highlighted cells, which can reveal all sorts of patters that weren't obvious before; for example, if you select Szudzik's pairing function, toggle prime highlighting on, and increment the start number to 41, you'll find enough motivation to read about Euler's 7 Lucky Numbers.
By default, prime highlighting is toggled off. When toggled on, the background of any grid cell holding a prime number will render white, essentially highlighting them.
In the future I'll look into adding a feature where, rather than only highlighting primes, the user will be able to enter a formula, and all the cells holding a number satisfying the formula in the grid will be highlighted. For example, if the user selected the boustrophedonic pairing function and chose to highlight all the polygonal numbers (the ones satisfying ), the diagonal of the grid would be highlighted. Once that is added, I'll try to make presets for common/relevant formulas. Lastly, if I can get it to work, I'll try to make it so that multiple highlights can be toggled on at the same time.
By default, numerals are toggled on.
When toggled off, the color of the numerals are changed to match the background color, essentially hiding them. To see this, toggle the numerals off and make some text selection on the grid with your cursor. There is an exception; when numerals are toggled off and highlight primes is toggled on the numerals for the primes are visible. This is on purpose.
In the future I'll look into adding a feature where, when numerals are toggled on, hovering over a grid cell will show numeral.
Transpose flips every entry along the diagonal, in other words
The default and recommended color theme is the heatmap. The color for each cell is determined by the number inside the cell.
There are some issues with the grayscale and red-blue color themes at higher grid lengths.