Results 1 to 4 of 4

Thread: GIMP Script: Tile Shuffle

Threaded View

  1. #1
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,567

    Post GIMP Script: Tile Shuffle

    Over in Woekan’s Dungeon Tiles in Adobe Photoshop Tutorial I mentioned doing this with gimp, and referenced a script I wrote to shuffle tiles.

    When run, the script prompts for X and Y tile size. The default is 100 for both.

    Here is a sample source:
    Click image for larger version. 

Name:	shuffle1.png 
Views:	214 
Size:	131.6 KB 
ID:	9438

    The result:
    Click image for larger version. 

Name:	shuffle3.png 
Views:	162 
Size:	144.3 KB 
ID:	9439

    If the width or height aren't evenly divisible by the tile size, then the strip of partial tiles on the right and/or the bottom are shuffled. If both aren't divisible the lower right part tile will not get moved. (This is shown in the previous example.)

    Now where this comes in handy (for example) is if you have a nice rendered noise (like this level adjusted difference clouds with a grid to help show the effect):
    Click image for larger version. 

Name:	shuffle4.png 
Views:	149 
Size:	82.9 KB 
ID:	9440

    And after running the script:
    Click image for larger version. 

Name:	shuffle5.png 
Views:	155 
Size:	83.3 KB 
ID:	9441

    Just unzip the file into your gimp scripts directory. The script registers as Filter>Distorts>Tile Shuffle

    -Rob A>
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •