[vox-tech] [OT] Math question: help me make a rainbow

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Wed Apr 1 19:34:59 PDT 2009


Bill Kendrick wrote:
> On Tue, Mar 31, 2009 at 10:12:04PM -0700, Bill Broadley wrote:
>> Hrm, I don't think ascii is going to help, at least for me.  Ah, ok, I have an
>> idea of what you think you want to do.  I think you do need 3 points.  A
>> center, radius, range of angles.  Basically there are an infinite number of
>> 180 degree curves that go through 2 points, and there's no way to know how
>> high the peak should be, nor which exact fraction of a circle to display.
> 
> True.  But going under the assumption that ONE of the points is at the
> far left or right of the circle (at the 0th or 180th degree), that allows
> for only one circle/arc that can go through the points.
> 
> Make sense?

Maybe you should draw it with a widely available drawing tool
instead of ascii art. I have heard of something that might
work for this before somewhere...

-- 
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                       Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
---------------------------------------------------------------------------


More information about the vox-tech mailing list