Truchet tiling technique is used to create unexpected patterns. Click to generate new pattern.
Try changing the parameter P inside the moussedPressed() function.
In this sketch, the tiles are triangles. Experiment with other shapes.
Press "s" to save as pdf (will be saved in the sketch folder).