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 givenwidthandheight. - ring(row, col, dimension, wrap): Creates a new quadrille representing the square block of radius
dimensioncentered 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 —
hotat0,coldat the largest number present.