Instance accessors generate new quadrille instances derived from the original. These methods allow you to create modified versions while preserving the original quadrille’s state:

  • clone(): Creates a shallow copy of the quadrille.
  • row(row): Creates a new quadrille containing only the specified row.
  • crop(row, col, width, height, wrap): Creates a new quadrille representing the rectangular region anchored at (row, col) with the given width and height.
  • ring(row, col, dimension, wrap): Creates a new quadrille representing the square block of radius dimension centered at (row, col) — center cell included.
  • trim(): Creates a new quadrille containing the minimal span of its filled cells.
  • heatMap(hot, cold): Creates a new quadrille of colors ramped by this one’s numbers — hot at 0, cold at the largest number present.