#texture #tile #algorithm #input #image #how #generate

autotiler

An implementation of the autotiler algorithm

2 stable releases

1.1.0 Jun 16, 2023
1.0.0 Jun 15, 2023

#83 in #how

MIT license

24KB
285 lines

Autotiler

Generates an autotiler texture from a given texture. The input needs to be a tileable texture with 6 x 8 (width x height) tiles. Look at the Input image for inspiration in how to construct the input for the Autotiler.

Input

Input image

Output

Output image

You can then use the generated output and tile a map using the helper function get_tile_position. Check the random example for how to use this library.

Image showing a random output generated using the algorithm

Dependencies

~5MB
~62K SLoC