Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Ordering colors for contrast (luma)

by BrowserUk (Patriarch)
on May 05, 2015 at 13:33 UTC ( [id://1125732]=note: print w/replies, xml ) Need Help??


in reply to Re: Ordering colors for contrast (luma)
in thread [OT] Ordering colors

I sorted them using your luma function and got this which doesn't have the effect I'm looking for. It seems to concentrate similar colors together. Eg. the yellows and light silver at the far end, the blues and greens at the near end, the reds and pinks in a couple of bunches.

I'm slowly working my way the the links you posted, but they seem to be mostly about picking one color to contrast with one other color; and I'm stuck to think of a way to use that order 64 colors for my purpose.

I approaching the conclusion that it might be an NP problem: basically, like trying to arrange the numbers 1 through 64 such that you maximise the sum of the differences between adjacent numbers.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Replies are listed 'Best First'.
Re^3: Ordering colors for contrast (swap tk)
by Anonymous Monk on May 05, 2015 at 16:29 UTC

    Ha, there are four lumas, ( 2.996, 3.7112 , 2.7834, 3.4986, ) ... yaytk

      Taking note of the interleaving done in your fudgy examples, and looking at the results, I wondered what the result would look like if I did the Luma sort followed by a full interleave (rather than your 4 partial interleaves) and I was very pleasantly surprised by the result.

      Whilst the color-blind compatible stuff is good for small sets (<=12), I've a need for a greater range and I think this luma-sorted & interleaved is pretty good for up to 64 colors on black or white backgrounds.

      Thanks for the cluebats.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
      In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1125732]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-28 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found