Live data from Hacker News

Colornames.org – A collaborative effort to name all 16.7M colors

colornames.org

191–200 of 237 posts

Re: Colornames.org – A collaborative effort to name all 16.7M colors

#191

Earlier quoted context omitted.

after checking icon and layout, they just install the extension in a sandbox and if it runs without a javascript error it passes.

It has just appeared now. https://chrome.google.com/webstore/detail/colorify/pipnfjhpb...

Could you make it activate on demand/icon click? Excited to see how this would affect skimming web pages for me.

Re: Colornames.org – A collaborative effort to name all 16.7M colors

#192

Earlier quoted context omitted.

But it's bgcolor="#ff6600"?

Both are there: https://colornames.org/search/results/?query=Hacker+News+Ora... Although the 65 one needs to be better named "Fake Hacker News Orange" or "Hacker Fake News Orange".

Oh no, it is #ff6600! I didn’t realize that I had customized my topbar color to a different orange.

hopefully the masses can figure it out and correct it.

Re: Colornames.org – A collaborative effort to name all 16.7M colors

#193

I think we should also name the numbers between 1 and 1,000,000 wiht unique names. The current names we use have too many patterns :D The number 173,515 could be a "singing dog", etc.

Those numbers already do have unique names.

The names of colors like "#ff38a1" are also unique, so what is that post about?

Re: Colornames.org – A collaborative effort to name all 16.7M colors

#196
post #33

Earlier quoted context omitted.

Your suggestion was that if two colors are indistinguishable, they should have that name. But given any two colors A and B you can construct a sequence C1 = A, C2, C3, ..., Cn = B where adjacent colors Ci and Ci+1 are indistinguishable from each other, and so need the same name, for 1 <= i < n. Hence, A and B have to have the same name.

The problem with your argument is that indistinguishable doesn't mean the equal. I'm not saying there is no difference between adjacent colors. I'm saying that the difference is indistinguishable. A lot of indistinguishable differences add to a distinguishable difference. Think about it with numbers: if your sequence A, B, C... are each zero units apart, then yes, A = B = C = ... In actuality, though, they are not ze…

Let's do an example, using just colors with no red or green in their RGB representation so we just have to give the B component, which is a decimal from from 0 to 255. Let's call 0 "black".

Your suggestion was that if a color is close enough to another to be indistinguishable it the two should have the same name.

1 is close enough to 0, so gets the name "black" too.

How about 2? That's farther from 0 "black". Is it distinguishable? If not, it too is "black", and we can go on to compare 3 and 0, and beyond.

At some point we get our lowest blue-only RGB color that is distinguishable from 0 "black". Suppose that is 4. So we have 0, 1, 2, and 3 are all called "black", and since 4 is distinguishable from 0 it needs a new name, say "very light blue".

But now we have 3 "black" only 1 away from 4 "very light blue". Those are probably indistinguishable, so are supposed to have the same name. Oops.

Re: Colornames.org – A collaborative effort to name all 16.7M colors

#197
post #191

Earlier quoted context omitted.

It has just appeared now. https://chrome.google.com/webstore/detail/colorify/pipnfjhpb...

Could you make it activate on demand/icon click? Excited to see how this would affect skimming web pages for me.

From a security point of view it will probably require some additional permissions, that I'm not comfortable asking yet.

It's also taking a few seconds to process big pages so for the time being I'll rather have the user click the button when he wants to.

But I'll try to think of a solution for this use case.

Re: Colornames.org – A collaborative effort to name all 16.7M colors

#200

Earlier quoted context omitted.

That’s called CSS. Use a user style, not javascript. The query is not applicable since its not offered by HN themselves.

You are misunderstanding what grease-monkey can do, and what I'm proposing. e.g. try loading news.ycombinator.com?myColorVar=44ff55 , it will load normally, as usual. Of course, this variable means nothing to the HN backend, but this is where e.g. Grease-monkey comes in: It injects a bit of javascript of your choosing into the page context for the news.ycombinator.com/* pages. This scriplet can easily change the colo…

The following code snippet in a grease-monkey-script with

// @include https://news.ycombinator.com/*

in the header will color the top-bar on HN pages with the color given in the URL such like https://news.ycombinator.com#MYC=lime or https://news.ycombinator.com#MYC=#ce1c01 .

(function() { if (color=document.location.href.match(/#MYC=(.)/)[1]) { document.querySelector("#hnmain>tbody>tr:first-of-type>td").setAttribute("bgcolor",color); document.querySelectorAll('a[href^="https://news.ycomb"],a:not([href="/"])') .forEach(e => {e.href+="#MYC="+color}); } })();

This script colors the top bar, and adds the custom colour to all HN-internal links, so until you manually change the URL, further navigation in that tab within news.ycombinator.com will retain your chosen top-bar colour.

(I hope the code comes out formatted in a legible way)

Post reply on HN