<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Thu, 04 Nov 2010 15:31:36 +0000
From   : groupsstuff@... (Farlie A)
Subject: Programming: Colour names in Sigsumeidsi

Rick Murray wrote:
> On 04/11/2010 12:56, Farlie A wrote:
>
>   
>> Wheras an obvious but not staurated green might be :
>>   ovgatetripidbimul (overflow green accumulator 3/4 level)
>>     
>
> Is there any specific reason why the language construct takes something 
> fairly simple (this much red, this much green, this much blue) and 
> complicates the hell out of it?
>
>   
Point taken, and that colour name is typoed anyway :(

It should have read  ovgatetripbi'dmul , and apologies if that sounds like
a medication <me giggles>
(Side note: Generic organic compound names have a system don't they? )


>   
>> The programming exercise is to convert between RGB(or HTML colors) and
>> the 'simplest' possible Sigsumeidsi color name ,
>>     
>
> Mmmm, I'm wondering how tricky it would be to specify the pastel colours 
> (azure, that sort of thing).
>
>
> I'd be inclined to maintain a look-up table of the "common" colours 
> (there'd only be 8-32 depending on what you think of as common).
>
> For the rest, work with divisions of 256, like half green would be:
>      128th of 256.
> Can this reduce?
>      64th of 128.
> Can this reduce?
>      32th of 64th.
> And so on until you arrive at the simplest arrangement. This is missing 
> out a lot, but since I'm numerically dyslexic (and getting ready for 
> work once I finish my sukiyaki), you'll have to make do with this for 
> now. ;-)
>   
Sounds like a very specific documented math algorithm is called for :)

>> I am also aware of one flaw with the above if anyone wants to point it out...
>>     
>
> Computer video cards understand levels of 0-255, HTML colours (etc) 
> understand levels of 0-255, this seems an unnecessarily complicated 
> step? <grin>
>
>   
That isn't actually the flaw I was thinking of,  In fact looking over my 
posting I can also see another flaw
I didn't notice when starting to think about this, relating to a 
possible ambiguity that needs resolving.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>