Polygonal Tiles from Hitomezashi Patterns and Heat Equations

Year: 2025 Authors: Bjorn Vermeersch

Core claim

Procedural sashiko stitch patterns can be transformed via heat diffusion and conformal mapping into visually rich polygonal tile designs.

Topics

hitomezashi patterns, heat diffusion equation, polygonal tiles, conformal mapping, tessellations

Domains

partial differential equations, conformal mapping, tessellations, textile-inspired design, math art, decorative tiling, generative pattern design

Methods

procedural binary codes, two-colouring, heat equation solving, Schwarz-Christoffel mapping, image-based colour rendering

Media

sashiko embroidery patterns, photograph colour wheel, rectangular tiles, polygonal tiles

Paper text

The text below is the locally extracted OCR/Markdown version of the paper. Raw PDF files remain local and are not published here.

Bridges 2025 Conference Proceedings

Polygonal Tiles from Hitomezashi Patterns and Heat Equations

Bjorn Vermeersch

Heverlee (Leuven), Belgium; vermeersch.publications@gmail.com

Abstract

This paper presents a method to transform procedural sashiko embroidery into intricately coloured polygonal tiles. Two-coloured hitomezashi stitch patterns are used as time-periodic inputs to the heat diffusion equation. Rendering the resulting temperature field with a photograph as colour wheel produces decorative rectangular tiles. Conformal Schwarz-Christoffel mappings extend the recipe to both regular and irregular polygons of arbitrary vertex count. A range of tile designs and examples of an Archimedean and Cairo tessellation thereof are showcased.

Introduction: Hitomezashi Stitch Patterns

This work was inspired by a Numberphile video [2] in which Ayliean MacDonald creates procedural line drawings reminiscent of hitomezashi patterns. We will consider sashiko stitches of unit length aligned on a uniform square grid. A binary code on the axis governs for each column|row whether the first stitch in the vertical|horizontal run touches the axis (‘0’ bit) or is offset by 1 unit (‘1’ bit), as depicted in Figure 1.

img-0.jpeg Figure 1: Procedural generation of hitomezashi patterns (left). All 16 combinations of two-bit periodic codes produce possibly offset/reflected versions of three prototypical designs (right).

img-1.jpeg

img-2.jpeg

img-3.jpeg

Codes built from repeating two-bit numbers induce isolated squares and turret-like or diagonal zigzag lines (Figure 1, right) but irregular codes can quickly produce more intricate patterns (Figure 2). Designs can be uniquely labelled by a pair of identifiers both of the form , where the binary stitching code for the corresponding axis is the -digit representation of integer in base 2 (Figure 2a). The optional superscript * signals that the binary code for is to be appended by itself in reverse bit order so as to induce output patterns with horizontal|vertical mirror symmetry (Figure 2b).

Hitomizashi patterns are well known to the math art community [3][5][6][7] and have plenty of decorative appeal in their own right. Here, I use them as inputs for further processing and artistic manipulation.

Generation of Rectangular Decorative Tiles from Stitch Patterns and Heat Equations

The overall workflow, illustrated schematically in Figure 3, is built from the following four steps.

  1. Pseudo-random generation of hitomezashi pattern We draw binary sequences of length and for the and axes respectively. Enforcing correlation between successive bits, i.e. bit flips ( ) occur with a specific probability , can nudge the output towards aesthetically favourable directions. While highly subjective, the procedure with suitable constraints on and (discussed later) tends to yield a visually pleasing pattern and output tile for one out of every 3 or 4 random trials.

Vermeersch

img-4.jpeg Figure 2: Example of a bit-encoded stitch pattern (left) and its symmetric extension (right).

img-5.jpeg Figure 3: Core workflow to generate rectangular decorative tiles.

  1. Two-colouring to obtain a cell activity matrix The stitch pattern partitions its rectangular bounding box into distinct zones that can be two-coloured, turning it into an activity matrix of cells that are either ‘active’ (black = 1) or ‘idle’ (white = 0). Throughout this work I always assign the bottom left cell to be active, i.e. serves as ‘seed’ for the colouring. This choice, combined with symmetrically extended stitch patterns, can offer artistic advantage as it ensures a splash of colour or other visual feature near the corners of the output tile. That said, dual colouring could certainly be used as well.
  2. Computing surface temperature The cell activity matrix can now be interpreted as “electronic circuits” atop a semi-infinite “semiconductor substrate” with thermal diffusivity , for which the surface temperature distribution can be computed from the heat diffusion equation . This seemingly haphazard leap of imagination is rooted in my day job as a thermal modelling engineer at a nanoelectronics research facility but should be quite suited to mathematical art, since diffusion equations produce well-behaved unique solutions and tend to soften hard features in their inputs much like a blurring filter does.

For reasons that will become fully clear during step 4 (rendering of the output tile), we assume that the circuit power oscillates sinusoidally in time at angular frequency . In practice, one does not need to decide on numerical values for or individually. Rather, both parameters combine into a single and more intuitive diffusion length that can be used to control the artwork appearance, as will be discussed shortly.

Switching to complex phasor representation turns the partial differential equation for into an ordinary one for that can be solved analytically. In principle, one could forgo the 3D half space and instead opt to solve the 2D heat equation directly on the square or rectangular domain comprising the cell activity pattern. However, this 2D configuration is computationally costly and thus less favourable for generating artwork. The boundary conditions on the rectangle perimeter induce infinite

Polygonal Tiles from Hitomezashi Patterns and Heat Equations

summations over image heat sources that may converge rather slowly. In addition, the fundamental 2D solution for involves Bessel functions while the 3D case admits the simpler kernel .

For 3D half space no image sources are needed, and it suffices to derive the fundamental response to a single square cell centred at the origin. The desired solution induced by the activity pattern then immediately follows by superimposing shifted copies of . A fast approximate solution for can be obtained by evenly subdividing the unit square heat source into smaller squares centred around which are then each treated as infinitesimal point sources, yielding

Some prefactors have been omitted without loss of generality because the output artwork is invariant to global scaling of the temperature field. The singular terms at that attempt to give the contribution of a subsquare to the temperature response in its own centre must be replaced by . Physically, the diffusion length in Equation (1) is a metric for how deep thermal oscillations at angular frequency can penetrate into a material with diffusivity . Artistically, it can be wielded as an independent parameter for tuning the artwork appearance, as will be illustrated in a later Figure. is evaluated on the centres of a uniform square grid with unit size covering the region . Superimposing shifted copies then yields at a resolution of pixels per stitch, producing a rectangular output tile that is pixels wide by pixels tall.

  1. Rendering with a source image as ‘colour wheel’ The complex field is a smooth function that bundles the in-phase and out-of-phase components of the periodic temperature oscillations. Taking a page from Frank Farris’s delightful playbook [1], we can use a source photograph (measuring pixels wide by pixels tall) to serve as a ‘colour wheel’ with which to render . A variety of schemes could be conceived to map field values to source pixel coordinates; I opted for simple linear transformations of the real and imaginary parts to respectively pixel columns and rows in the source image, i.e.

Swapping the min and max bounds of and/or in Equation (2) provides a total of 4 distinct rendering options that correspond to flipping the source image horizontally and/or vertically. Tile appearance can be additionally manipulated by an optional phase rotation before source image mapping.

Using the Workflow Parameters to Tune Tile Appearance

The presented method contains several parameters that can be adjusted to aesthetic advantage. It is instructive to discuss and visually inspect the impact that each of these knobs has on the tile appearance. Obvious key contributors, besides the source image being used, are the size and bit sequences of the stitch pattern.

Activity matrix size Very small patterns induce somewhat dull and simplistic tiles, while very large patterns can lead to overcrowded designs that lack overall coherence. I found happy middle ground in the ranges . Symmetrically extended and bit sequences (indicated with superscript in the ID codes) tend to be aesthetically preferable as they create tiles with twofold reflectional symmetry.

Bit flip probability Binary sequences generated with either very low () or very high () bit flip probabilities induce stitch patterns that strongly evoke the simple dotted or diagonally striped appearances of the respective two-bit periodic limits from Figure 1, which may not be desirable (Figure 4). I found to provide a pleasant blend of global coherence and local complexity.

Vermeersch

img-6.jpeg Figure 4: Impact of bit flip probability on resulting stitch patterns and tile appearance.

img-7.jpeg Figure 5: Impact of diffusion length parameter on an example thermal field and resulting tile appearance.

Diffusion length Because is exponentially damped, relatively small diffusion lengths ( ) thermally decouple active cells from one another (Figure 5, left two columns). This in turn induces tiles

Polygonal Tiles from Hitomezashi Patterns and Heat Equations

with sharply delineated regions of quasi-uniform colour. Longer diffusion lengths yield more gentle temperature transitions and bring partial thermal coupling between neighbouring cells into play, giving a more balanced tile appearance with much more intricate detail (Figure 5, right two columns).

Phase rotation This parameter does not alter the geometric pattern as such, but strongly affects the tile colourisation and can thus be used to help accentuate certain regions or edge features (Figure 6). The impact co-depends on diffusion length. At typical settings , tends to be smaller in both magnitude and range compared to , and consequently displays a more pronounced sensitivity to phase rotation.

img-8.jpeg Figure 6: Impact of phase rotation parameter on the appearance of an example tile.

Extension to Non-Rectangular Tiles via Schwarz-Christoffel Mappings

The recipe from Figure 3 can only produce square and rectangular tiles. However, polygonal tiles with any number of vertices can be obtained through two consecutive conformal transformations (Figure 7). I carried out the mappings with the Schwarz-Christoffel Toolbox in Octave [4].

img-9.jpeg Figure 7: Workflow to generate non-rectangular polygonal tiles through conformal mappings.

First, the field computed for a square tile is mapped conformally to its image field on the unit disc. Combining rotated copies of (discussed in more detail below) produces a new field on the disc with -fold rotational symmetry, which in turn is mapped conformally to the output field on the target polygon. Optional pre-rotation of by a judiciously chosen angle can help align prominent features in the artwork with the edge midpoints or vertices of the non-rectangular output tile (Figure 8).

The rotational symmetry extension can in principle be achieved through domain colouring of complex plane maps , but these severely distort the input patterns. I instead opted for two alternate methods with precautions to avoid excessive self-overlaps of the input pattern. Confining the main features of to a corner of the square tile by overriding 3 quadrants of the cell activity matrix to 0 (indicated by a in the ID codes) goes a long way. Even so, some remaining subtleties need to be taken into consideration.

Vermeersch

img-10.jpeg Figure 8: Example impact of disc prerotation parameter on a regular hexagonal tile.

img-11.jpeg Figure 9: Example impact of the strategy with which rotated copies of are blended together into .

Additive superposition (Figure 9, upper pathway) creates hotspots where rotated copies of the input pattern do happen to overlap. The accumulation of temperature tails tends to affect more prominently due to its narrower range. The resulting alterations of the thermal fields can cause the appearance of the output design to deviate quite strongly from the originating square tile, which may be undesirable.

A winner takes all strategy (Figure 9, lower pathway) provides an alternative approach where the real and imaginary parts of are constructed separately: for each pixel, we maintain whichever of the rotated copies gives the largest absolute value for the respective field component. This preserves a much closer resemblance to the patterns of the square tile, but can come at the cost of potentially jarring discontinuities.

Speaking of discontinuities: we can ensure uniform colourisation around the polygon tile edges through a window tapering function on the unit disc for which I adopted the form (with a tuneable parameter):

f _ {w} \left(r _ {\odot} \leq r _ {\text {w i n d o w}}\right) = 1 \quad \text {a n d} \quad f _ {w} \left(r _ {\odot} > r _ {\text {w i n d o w}}\right) = 3 u ^ {2} - 2 u ^ {3} \quad \text {w i t h} \quad u = \left(1 - r _ {\odot}\right) / \left(1 - r _ {\text {w i n d o w}}\right). \tag {3}

For standalone tiles, we can simply apply directly to the disc field . For tessellations, where a common edge colour must be enforced among distinct tile designs, I instead interpolate the source image coordinates into the colour wheel towards a target source pixel for points near the polygon edges:

Figure 10 shows an Archimedean tessellation of a square, triangular and hexagonal tile constructed in this fashion. Note however that the workflow from Figure 7 is by no means restricted to regular output polygons. Figure 11 presents non-convex flower-shaped polygonal tiles (florygons) comprising 90 vertices. Finally, an example of a Cairo tiling with 4 differently coloured irregular pentagons is shown in Figure 12.

Polygonal Tiles from Hitomezashi Patterns and Heat Equations

img-12.jpeg

img-13.jpeg Figure 10: Rhombitrihexagonal tessellation of tiles created by the workflows in Figures 3 and 7.

img-14.jpeg Figure 11: Deconstructed frangipani flower: Decorative non-convex polygonal tiles with 90 vertices.

Acknowledgements Disclaimer for Employer Purposes

I warmly thank Prof. Frank Farris for motivating discussions and insightful feedback. The presented research and manuscript preparation were carried out in the author’s personal free time on a privately owned computer.

Vermeersch

img-15.jpeg Figure 12: Cairo tiling built from 4 differently coloured irregular pentagons.

References

[1] F. A. Farris. Creating Symmetry: The Artful Mathematics of Wallpaper Patterns. Princeton University Press, 2015. [2] B. Haran. Numberphile: Hitomezashi Stitch Patterns. 2021. https://www.youtube.com/watch?v=JbfhzlMk2eY [3] C. Hayes and K. A. Seaton. “A Two-Dimensional Introduction to Sashiko.” Bridges Conference Proceedings, Online, Aug.1-5, 2020, pp. 517-524. http://www.archive.bridgesmathart.org/2020/bridges2020-517. [4] J. Malkoun. Octave port for Toby Driscoll’s Schwarz-Christoffel Toolbox in Matlab. 2018. https://github.com/joemalk/sc_toolboxoctave [5] D. A. Reimann. “Connections between Hitomizashi Patterns and Truchet Tiling.” Bridges Conference Proceedings, Halifax, Nova Scotia, Jul. 27–31, 2023, pp. 457–460. http://archive.bridgesmathart.org/2023/bridges2023-457. [6] A. Sen and M. Martinez. “Attainable Symmetry in Generalized Hitomezashi Patterns.” Bridges Conference Proceedings, Richmond, Virginia USA, Aug. 1-5, 2024, pp. 227-234. http://archive.bridgesmathart.org/2024/bridges2024-227. [7] D. J. Wildstrom. “Enclave Depth in Hitomezashi Stitchery.” Bridges Conference Proceedings, Richmond, Virginia USA, Aug. 1-5, 2024, pp. 357-360. http://archive.bridgesmathart.org/2024/bridges2024-357.

0 items under this folder.