You will need to do a trigonometric calculation for each line, seeing where it interesects with your various circles. See Circle line intersection
But you could just wing it, and start printing characters by trial and error, till you get a circle. But thats your homework, not mine. :-)
You might want to google for ascii art bullseye.
Also, if you understand the XPM file format, you can create intricate xpm graphics with your character set. You can convert XPM's to jpg later if you wanted.
This is actually a left arrow, if seen from a terminal.
my $left = <<"EOD"; /* XPM */ static char * pixmap[] = { /* width height num_colors chars_per_pixel */ " 16 12 3 1 ", /* colors */ " s None c None", ". c black", "X c yellow", /* pixels */ "..........X.....", "........XXX.....", "......XXXXX.....", "....XXXXXXX.....", "..XXXXXXXXX.....", "XXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXX", "..XXXXXXXXX.....", "....XXXXXXX.....", "......XXXXX.....", "........XXX.....", "..........X....."}; EOD
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |