Linked Questions
10 questions linked to/from Function for creating color wheels
1
vote
1
answer
175
views
Example "server.php" from ReactJS tutorial has syntax error [duplicate]
thank u for taking time to read my question. It is probably a beginner level question, but I did a lot of search without finding an answer.
I am starting to learn React, and at the very beginning of ...
53
votes
7
answers
22k
views
Followup: Finding an accurate "distance" between colors
Original Question
I am looking for a function that attempts to quantify how "distant" (or distinct) two colors are. This question is really in two parts:
What color space best represents human ...
29
votes
5
answers
12k
views
How to use combinations of sets as test data
I would like to test a function with a tuple from a set of fringe cases and normal values. For example, while testing a function which returns true whenever given three lengths that form a valid ...
20
votes
5
answers
25k
views
What is the math behind the Colour Wheel
I want to create a pie with 12 slices, with each slice a different colour.
Pretty much every colour wheel seems to follow the same format; eg: http://www.tigercolor.com/color-lab/color-theory/color-...
3
votes
2
answers
2k
views
How to "rotate" the hue of a color?
I want to generate colors that go well with a given UIColor (Triadic, Analogues, Complement etc).
I have read a lot of posts like this and this and this. In the last post, The answerer suggested ...
3
votes
3
answers
4k
views
Color wheel in Java to give N Equidistant Colors
I'd like to create a function to give N equidistant RGB colors. How do we define "distance" in this case? Well, I'm not too sure, but I was thinking to use a color wheel definition.
Hence, if I can ...
5
votes
1
answer
2k
views
Stable random color algorithm
Here we have an interesting real-world algorithm requirement involving colors.
N Pretty Colors: In order to draw a beautiful chart (i.e: pie chart) we need to pick a random set of N colors that are "...
1
vote
1
answer
3k
views
Algorithm to map Numbers to Hex Colors
Here's my situation. Say I have two columns of data containing different elements. I'd like to highlight with a different color, all matching elements between those two columns. Each of those ...
5
votes
1
answer
2k
views
How to programmatically arrange a set of 256 RGB colors in 2D so that there all adjacent colours have a smooth transition
I have a set of 256 colors (all available colors in an xterm-256color terminal) and I am using a script called 256colors2.pl that I see mentioned in nearly every Internet article that talks about 256 ...
2
votes
2
answers
650
views
Selecting nearest RGB colour from std::map
I have a map of pre-defined colors and a given color to select one nearest match. If i will use distance formula, would I be calculating the distance from each pre-defined color in map rather than ...