Rather than using RGB, try using an HSL (Hue, Saturation, Lightness) or HSV (Hue, Saturation and Value) color model. Then experiment with different elements of bias, e.g. hue being more important than luminance when you’re calculating the distance.
More Related Contents:
- HSL to RGB color conversion
- Algorithm for Additive Color Mixing for RGB Values
- How to compare two colors for similarity/difference
- Determine font color based on background color
- Algorithm to check similarity of colors
- Algorithm to randomly generate an aesthetically-pleasing color palette [closed]
- Is there an algorithm for color mixing that works like mixing real colors?
- How does one convert 16-bit RGB565 to 24-bit RGB888?
- Function for creating color wheels [closed]
- Smooth spectrum for Mandelbrot Set rendering
- RGB value base color name
- “Rounding” colour values to the nearest of a small set of colours
- Color gradient algorithm
- What is the most efficient algorithm to find a straight line that goes through most points?
- Algorithm to find all Latitude Longitude locations within a certain distance from a given Lat Lng location
- How do ASCII art image conversion algorithms work? [closed]
- Reason for the number 5381 in the DJB hash function?
- What is the best way to check the strength of a password?
- Algorithm for merging two max heaps?
- Why is my recursive function so slow in R?
- How to convert decimal fractions to hexadecimal fractions?
- Convert recursion to tail recursion
- Finding connected components of adjacency matrix graph
- Computational complexity of base conversion
- Stable separation for two classes of elements in an array
- Cache Invalidation — Is there a General Solution?
- How to apply binary search O(log n) on a sorted linked list?
- Why is Insertion sort better than Quick sort for small list of elements?
- Distance from a point to a polygon
- 64/32-bit division on a processor with 32/16-bit division