autotiler

Crates.ioautotiler
lib.rsautotiler
version1.1.0
sourcesrc
created_at2023-06-15 15:22:37.031407
updated_at2023-06-16 11:09:00.499835
descriptionAn implementation of the autotiler algorithm
homepage
repositoryhttps://github.com/isidornygren/autotiler
max_upload_size
id891207
size63,112
Isidor Nygren (isidornygren)

documentation

README

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

Commit count: 7

cargo fmt