Getting an intersect of a color
-
Well, assuming that yellow is RGB 255, 255, 0, and green is obviously 0, 255, 0, there are 255 intersection points. Like so: 0, 255, 0 1, 255, 0 2, 255, 0 3, 255, 0 You get the idea. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
Yes but since green is 0,128,0 and green yellow is 0,173,28 and yellow is 255,255,0 a simple matter of adding 1 to red does not get me any closer to the intersection since its not a linear equation. I was hoping someone would know a math formula to calculate the intersection of the three planes basically. nick I'm not an expert yet, but I play one at work. Yeah and here too.
-
Yes but since green is 0,128,0 and green yellow is 0,173,28 and yellow is 255,255,0 a simple matter of adding 1 to red does not get me any closer to the intersection since its not a linear equation. I was hoping someone would know a math formula to calculate the intersection of the three planes basically. nick I'm not an expert yet, but I play one at work. Yeah and here too.
How can green be 0, 128, 0 ? It is green, as is any value with 0 red and 0 blue, but hard green is 255, surely ? In any case, the system works the same way, forget greenyellow, it's obviously not the point halfway between the other two. Instead, add 2 to your red value for every 1 you add to your green value. Write up a program that does that and draws a gradient and see how it looks. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
How can green be 0, 128, 0 ? It is green, as is any value with 0 red and 0 blue, but hard green is 255, surely ? In any case, the system works the same way, forget greenyellow, it's obviously not the point halfway between the other two. Instead, add 2 to your red value for every 1 you add to your green value. Write up a program that does that and draws a gradient and see how it looks. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
thanks By the way those are colors from the color namepsace. so obviously thier not dark colors I'm not an expert yet, but I play one at work. Yeah and here too.
Yeah, I guessed where they were from. I guess they have a dark green or something... Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
I need to get the intersection of Green and Yellow in ARGB format Is there a function for this. And yes I know Color.GreenYellow exists but I need to know how to get intersections to achieve other mid way points. nick I'm not an expert yet, but I play one at work. Yeah and here too.
use hue-saturation-brightness...
"When the only tool you have is a hammer, a sore thumb you will have."
-
use hue-saturation-brightness...
"When the only tool you have is a hammer, a sore thumb you will have."
-
do you have a link or some help for explanation I'm not an expert yet, but I play one at work. Yeah and here too.
Color.GetHue
http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?hue,+saturation,+brightness[^]
"When the only tool you have is a hammer, a sore thumb you will have."
-
I need to get the intersection of Green and Yellow in ARGB format Is there a function for this. And yes I know Color.GreenYellow exists but I need to know how to get intersections to achieve other mid way points. nick I'm not an expert yet, but I play one at work. Yeah and here too.
Treat each color value as a percentage 0=0%, 255=100% So, a certain color might be (20%, 30%, 90%) in RGB if you want to intersect that with another color (100%, 60%, 0%) the intersection will be the averages: (60%, 45%, 45%) Make sense?
-
Treat each color value as a percentage 0=0%, 255=100% So, a certain color might be (20%, 30%, 90%) in RGB if you want to intersect that with another color (100%, 60%, 0%) the intersection will be the averages: (60%, 45%, 45%) Make sense?
-
heres a rough equation i got from my friend: average the "Reds" - aa+11= bb bb/2 = 5D bb+22 = DD dd/2 = 6e cc+33 = ff ff/2 = 7f so the average =c #aabbcc and #112233 = #5D6E7F I'm not an expert yet, but I play one at work. Yeah and here too.
Yeah, it's pretty much the same thing. (Ra + Rb)/2 = Ri (Ba + Bb)/2 = Bi (Ga + Gb)/2 = Gi It makes sense since if you intersect a red line (255,0,0) with a black line (0,0,0) then the result should be a darker red line (128,0,0)
-
I need to get the intersection of Green and Yellow in ARGB format Is there a function for this. And yes I know Color.GreenYellow exists but I need to know how to get intersections to achieve other mid way points. nick I'm not an expert yet, but I play one at work. Yeah and here too.
just mix them Color c1=Color.Green; Color c2=Color.Yellow; Color mix=Color.FromArgb( (c1.r+c2.r)/2,(c1.g+c2.g)/2,(c1.b+c2.b)/2); //Roger