It is currently Fri Sep 18, 2026 7:01 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Simple patterns - Truchet style
PostPosted: Thu Jan 16, 2025 1:46 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 205
I've been obsessed with Truchet style images lately, both creating tiles and writing scripts to automate combinations of tiles, a few of the results are shown in the gifs below
Attachment:
simple-patterns-truchet-style.zip [4 KiB]
Downloaded 59 times

If anyone wishes to give it a try I've placed a script and an xcf file in the zipped folder above

It works with my gimp version 2.10.36 portable, running python 3.12.1 on windows 10

If you wish to try the script

Extract the two files from the zipped folder, place the simple-patterns script in your plug-ins folder then open the tile-patterns.xcf file in gimp

The script can be found at <Image>/Filters/Python-fu/Simple patterns truchet style

When the script is run it utilises visible layers from the source image, and will rotate and flip at random if selected to do so

It would be easy to create your own designs, just add a new layer, create your pattern and ensure it is set visible

If you create your tiles from scratch please note, the script only works on Square images of type RGB

'RE: the "Singles, Pairs, Triplets, etc" option.

If set to 0 (default): The script creates and fills 1 layer with tiles selected at random from the visible layers in the source image

If set to 1: The script creates 1 layer for each visible layer in the source image and fills the layer from its counterpart in the source image

If set to 2 (pairs): The script creates enough layers to make every possible pair combination from the visible layers in the source image

If set to 3 (triplets): The script creates enough layers to make every possible triplet combination from the visible layers in the source image

And so on

Thanks for looking, steve

PS

If you were to set all 12 layers visible in the xcf and set "Singles, Pairs, Triplets, etc" to 2 it will create 66 layers (all possible tile pair combinations), set to 3 it will create 220 layers (tile triplets), set to 4 it will create 495 layers, set to 5, well...... it starts getting silly :lol:

Attachment:
8 layer gif each layer created from 1 tile.gif
8 layer gif each layer created from 1 tile.gif [ 296.4 KiB | Viewed 1317 times ]


Attachment:
11 layer gif each layer created from 2 tiles.gif
11 layer gif each layer created from 2 tiles.gif [ 407.87 KiB | Viewed 1317 times ]


Last edited by Steve on Thu Jan 16, 2025 1:55 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Simple patterns - Truchet style
PostPosted: Thu Jan 16, 2025 1:48 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 205
Attachment:
7 layer gif each layer created from 4 tiles.gif
7 layer gif each layer created from 4 tiles.gif [ 271.53 KiB | Viewed 1316 times ]


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group