Posted March 2, 2011 at 9:42 in Graphics, Illustrator, Scriptographer - 2 comments

I have just spent the morning adding a new feature to my Tile Toy script called Sparsity. I can now control how dense the pattern will be by telling the tool to favor empty tiles – or at least tiles with no connection – by a certain percentage.

Every time the tool chooses a tile it will first pick a random number between 0-100. If the random number is less than or equal to the percentage input it will verify that no neighboring tiles require a connection and then pick an empty tile. If, however, there are tiles next to it that do require a connection it will simply disregard the sparseness. This way the percentage could be somewhat misleading but over a long enough period of time I guess it will even out.

2 Responses to “TILE TOY: NEW FEATURE”

  1. Omarrr
    May 7th, 2011 at 1:21

    Love this concept. I, some time ago, tried something similar to create roads in generated maps. Similar idea but the Tile Toy is much more elaborated in regards to the combinations and appearance.

    I’d love to get your toy run with out intersection tiles to see the final outcome.

    I really like what you have done. I don’t see that much inspirational procedural work these days. Congrats.

  2. HÃ¥kan @ Monovektor
    May 11th, 2011 at 10:36

    Thank you very much, I’m glad you like it!
    The Tile Toy is something I’ve been working on over a long time. I started learning Javascript just over a year ago and I have really struggled to get this tool to work properly. The good thing about this tool is the ease of making (and using) new and different tilesets, so making a non-intersecting set is really just a matter of how the tiles are drawn.
    I checked out your works as well and your drawing tool looks very nice indeed! They gave me some ideas for myself as I’m currently looking into alot of geometry and such.