How do you figure out the best contrasting-opposite color
-
I'm not sure what to call this. but i rember once seeing this color wheel which showed the best opposing colors...like yellow was the color opposite black. I'm not trying to figure out how to invert a color. so i want a function where if i send in the color black, it returns yellow. i'd settle for the name of that sorta color wheel :P
-
I'm not sure what to call this. but i rember once seeing this color wheel which showed the best opposing colors...like yellow was the color opposite black. I'm not trying to figure out how to invert a color. so i want a function where if i send in the color black, it returns yellow. i'd settle for the name of that sorta color wheel :P
substract the RGB combination of current color from RGB(255,255,255)
-
substract the RGB combination of current color from RGB(255,255,255)
-
Hi, After reading your disccission i have a question. that is how to get the rgb codes of the specific color, for example what are the rgb combinations of the color yellow. thanks.:) Nitin...
-
Try this:
Color original = Color.Yellow;
Color opposite = Color.FromArgb(255 - original.R, 255 - original.G, 255 - original.B);Ok i did some research and it turns out that complementary colors is same as inverted colors, for most part. so blue is the opposite of yellow, not black Here's another way to get inverted color... not sure if its more effecient. private Color InvertColor(Color color) { byte bRed = (byte)~(color.R); byte bGreen = (byte)~(color.G); byte bBlue = (byte)~(color.B); return Color.FromArgb(bRed, bGreen, bBlue); } This site helped to explain it: http://www.webwhirlers.com/colors/combining.asp