If you need a color wheel, for example, the example you provided (and, like most color wheels, you will find in the colors section of the craft store), where red is the opposite of green and blue is yellow-orange, purple, opposite to yellow, and etc .., you can just do the following math to change the hue of HSL or HSV to get an obsolete hue ...
double ToLegacyHue(double modernHue) { modernHue = ((modernHue % 360) + 360) % 360; // normalize 360 > modernHue >= 0 double ret = 0; if(modernHue < 60) { ret = modernHue * 2; } else if(modernHue < 120) { ret = modernHue + 60; } else { ret = (modernHue - 120) * 0.75 + 180; } return ret; } double FromLegacyHue(double legacyHue) { legacyHue = ((legacyHue % 360) + 360) % 360; // normalize 360 > legacyHue >= 0 double ret = 0; if(legacyHue < 120) { ret = legacyHue / 2; } else if(legacyHue < 180) { ret = legacyHue - 60; } else { ret = (legacyHue - 180) / 0.75 + 120; } return ret; }
dynamichael May 16 '17 at 2:13 2017-05-16 02:13
source share