🖽 Truchet tiles are cool. The simplest of forms can yield interesting patterns. Here are some patterns I find aesthetically pleasing; if you have any suggestions for other tilesets, I’d be happy to hear ![]()
Such tiles are also used in the package Babel for redacting text.
For more truchet tilings, see the tags #truchet and #truchettiles on Mathstodon.
#import "@preview/suiji:0.3.0": *
#set page(width: auto, height: auto, margin: 0pt)
#set text(font: "Iosevka")
#set block(spacing: 0.5em)
#let maze(width: 50, height: 20, leading: 0.50em, tiles) = {
let rng = gen-rng(0)
par(
leading: leading,
for y in range(height) {
for x in range(width) {
let tile
(rng, tile) = choice(rng, tiles)
tile
}
linebreak()
}
)
}
#for tileset in (
("╱", "╲"),
("🮘", "🮙"),
("🮤", "🮥","🮦", "🮧", "🮨", "🮩", "🮪", "🮫", "🮬", "🮭"),
("│", "─", "┤", "├", "┴", "┬", "┼", "╯", "╮", " ", "╰", "╭"),
("╭","╮", "╯", "╰"),
("🮨", "🮩"),
("🭋", "🭀", "🭈", "🭘", "🭛", "🭣", "🭦"),
("╯╭","╮╰"),
("╯╭","╮╰", "│", "─"),
) {
maze(tileset)
pagebreak(weak: true)
}
Zoom in to see the details of the more intricate patterns (such as (“🮘”, “🮙”), which might make one a bit dizzy
).

