p5.js Scripts: Creating Truchet Tiles

I have posted the first scripts I created with p5.js on a separate page. The great thing about p5.js is that the scripts run online and can be embedded directly into WordPress—at least it worked here on my PC.

The first and second scripts feature „Truchet tiles“ in their most basic form. The template for them came from the Wikipedia article on Truchet tiles. Essentially, they are square tiles that create unique mosaics through random placement and rotational symmetry. These patterns were first described by Sébastien Truchet.

Screenshot von wikipedia: https://en.wikipedia.org/wiki/Truchet_tiles

In the first example, I used tiles with quarter-circles. Each tile contains two quarter-circles and is randomly rotated in 90-degree increments. The second example uses the same approach but with diagonal lines instead of circles. The diagonal tiles create a kind of labyrinth.

Truchet Tiles Generator

The two scripts for the Truchet tiles can be found at the following links, where I have also posted two screenshots. The scripts use the p5.js-svg library. This makes it possible to download the generated graphics as an SVG file and then convert them into plot-ready G-code using tools like Inkscape or vpype.

Scripte: https://corcken.com/generative-art-scripts-for-plotters/

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

©2025 Corcken WordPress Theme by WPEnjoy