Saturday, May 31, 2014

The repository now contains a small Python script in assets/img/tiles that generates "wall" tiles from a given tile image using the great Pillow image processing library. For example from this original bricks image:

a composite image of the following wall tiles is generated (red lines added to show the tile edges):


The script cuts the original image appropriately and applies some blurring to the edges as well as creates some shadows that I think enhance the look quite a bit.


The tile submodule also contains a function now to automatically load such a tile map and assign names so they can be used easily, see the demo_tiles.py source file.



No comments:

Post a Comment