{celebrating a decade of learning to write in front of an audience}

Auto-generating attractive geometries

I have an “Old Glory Problem” (just coined that phrase.)  I have n icons (stars in the case of the flag, Favicons in the case of this site) and I need to arrange them in a visually-appealing way.

It regards the “Presence” feature I developed (look to your right on The Real Site.)  I keep thinking of sites I can add.  My first crop was fifteen, and I used a 5×3 grid.  When it got to sixteen, a pleasant 4×4 grid.  Then it was seventeen.

The cutest I could come up with is:















This would be roughly bounded by an astroid whatever a convex astroid would be — actually, among simple shapes, a parallelogram might be the optimal bounding box.

It seems the ideal arrangement for the eye to find it pretty is — what? — symmetry?  Preferably along two axes?  I suspect that this rule of thumb could be programmed and a set of “pretty” solutions would be spat out (1/2/3/5/3/2/1 in this case.)

Anyone want to take a stab at either telling me what the real name of this problem is, or writing a bit of code?  Maybe at some time other than 02h30 I can do it myself.



One Response to “Auto-generating attractive geometries”

  1. Joshua (Site Owner) Says:

    Would 18 be best as “1/3/5/5/3/1″, “6/6/6″, or something else, for instance?

Leave a Reply, but read first

  1. Feel free to leave replies even to very old posts.
  2. Is your comment not specifically about this post?  Great!  Go here.
  3. Flame, curse, insult, shout — just don't spam!  You won't increase your PageRank, even temporarily (the URLs are tagged 'nofollow'), and I'll delete it anyway.  Save us both time.