Results 1 to 5 of 5

Thread: Random tiles

  1. #1
      erdrix is offline
    Guild Novice
    Join Date
    Dec 2009
    Posts
    5

    Question Random tiles

    Is there a program or an add on for gimp that would allow you to take a collection of art and then tile them in a selected area randomly? For example, you have four or five grass tiles that need to be placed randomly so you don't get a noticeable pattern.

  2. #2
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,549

    Default

    I have a script that will get you part way there. It will shuffle an imaged based on a grid setting. (see my sig - "Tile Shuffle" ).

    You could fill the area (on the grid) with 5 different patterns than shuffle them. Or I can write a new script....( goes away thinking....)

    -Rob A>

  3. #3
      erdrix is offline
    Guild Novice
    Join Date
    Dec 2009
    Posts
    5

    Default

    I'll have to play with the tile shuffler. Thanks!

  4. #4
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,549

    Default

    OK - attached is a zip of quick script I put together. It shows up as Edit->Fill with Random Pattern Tiles...

    It lets you pick up to 5 patterns (not files) and specify weights for each pattern. It will fill the current selection with tiles randomly chosen from those patterns. The tile size is based on the size of the Base Pattern.

    Attached are a sample dialog and the result when I had an elliptical selection on the layer. You can see the weights were 1, 1, and 2, so the image will be roughly 25% base pattern, 25% alternate pattern1 and 50% alternate pattern 2.

    It isn't too smart as it fills the whole image space. I'm working on fixing that...
    Random tiles-2011-08-05_161346.jpgRandom tiles-test.jpg

    -Rob A>
    Attached Files Attached Files

  5. #5
      erdrix is offline
    Guild Novice
    Join Date
    Dec 2009
    Posts
    5

    Default

    very cool. thanks

Posting Permissions

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