Results 1 to 5 of 5

Thread: Portolan Line Generator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Default Portolan Line Generator

    If you've been following my entry in the light challenge, this is a somewhat cleaned up version of the script I used to make all those lines:

    To run it you'll need Ruby, and the output is SVG, so you'll need a vector editor like Inkscape to work with it.

    I'm releasing it under the GPL, and I've included some alternate compass roses under CC-BY-SA.
    Attached Files Attached Files
    Last edited by Hai-Etlik; 09-20-2010 at 10:02 PM.

  2. #2
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Default

    Replying to a post in another thread:

    Quote Originally Posted by Jaxilon View Post
    That reminds me, I tried to use that thing myself in one of my wips but I found it had too many lines. Maybe I'm not doing something right with it but is there a way to reduce how many intersections there are on a page? For instance, if I only wanted one set of lines?
    Set the -p option. The default value of 4 gives 16. Reducing it to 3 will give just 8 points around the circumcircle.

    You can also eliminate the outside lines with the --range option which can be set to inner (Only lines inside), or inner90 (Only the innermost 90° at each point).

    A very simple setup would be:

    Code:
    ruby portolan.rb -p3 --range=inner90

  3. #3
    Community Leader Jaxilon's Avatar
    Join Date
    Nov 2009
    Location
    A beach in Ecuador
    Posts
    5,548

    Default

    I believe, alas, I have no Ruby.
    “When it’s over and you look in the mirror, did you do the best that you were capable of? If so, the score does not matter. But if you find that you did your best you were capable of, you will find it to your liking.” -John Wooden

    * Rivengard * My Finished Maps * My Challenge Maps * My deviantArt

  4. #4
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Default

    Quote Originally Posted by Jaxilon View Post
    I believe, alas, I have no Ruby.
    Well, the solution to that is: http://www.ruby-lang.org/en/downloads/

    Otherwise, here's an 8 point version.
    Attached Files Attached Files

  5. #5
    Community Leader Jaxilon's Avatar
    Join Date
    Nov 2009
    Location
    A beach in Ecuador
    Posts
    5,548

    Default

    Thanks for the link. I'll be checking that out although I've never coded in Ruby.
    “When it’s over and you look in the mirror, did you do the best that you were capable of? If so, the score does not matter. But if you find that you did your best you were capable of, you will find it to your liking.” -John Wooden

    * Rivengard * My Finished Maps * My Challenge Maps * My deviantArt

Posting Permissions

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