Well, just in case this problem was assigned to you as part of your Phd. thesis research, :-), I would say, that for a bullseye, switch to a radial coordinate system. So set up a grid to print, say an array of arrays, AOA's. Say you had an array size of 80x80, for array indices 0..79.

So at (40,40) you would setup your origin for your radial coordinate system, where every position is defined by a reference angle and a radial distance to the object.

So, start filling in your array blocks with your characters, starting at the center, and blossoming outwards. So you determine at that any given position what the radius is to that cell, and if the radius is in certain ranges, they get assigned different characters to that cell.

But, I won't say more, as it might influence you too much. The radius can be easily converted to cartesian coordinates with some simple trig.

P.S. For mucho bonus points, how might you implement a 3 dimensional bullseye?


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

In reply to Re: Hints on hoq to create this graph? by zentara
in thread Hints on hoq to create this graph? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.