Which can be Wang tiles, aTAM, flexible tiles, ... There're a few hints in my thesis on how to do that but a simple example is enough