caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 10 Sep 2016 05:41 PM |
| What is the equation to find the inverse color based off of RGB? |
|
|
| Report Abuse |
|
|
sonihi
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 3655 |
|
|
| 10 Sep 2016 05:43 PM |
new_red = 255 - old_red new_green = 255 - old_green new_blue = 255 - old_blue |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 10 Sep 2016 05:44 PM |
I actually feel stupid.
I thought about that, but I was like "Nah that's stupid. If the color is 0, then 255-0 is 0" ... kill me |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 05:46 PM |
| but you probably dont want to invert it because if you do, 1-0.5 is always 0.5 so the inverse of grey will be grey |
|
|
| Report Abuse |
|
|
sonihi
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 3655 |
|
|
| 10 Sep 2016 05:47 PM |
| ########################################### |
|
|
| Report Abuse |
|
|
sonihi
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 3655 |
|
|
| 10 Sep 2016 05:48 PM |
| Does it matter that the inverse of grey is grey? |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 05:48 PM |
if you want grey to have contrast then yes
there is a certain equation for contrasting colors but i forgot |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 10 Sep 2016 05:49 PM |
But... the inverse of grey _is_ grey
|
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 05:51 PM |
if you want to contrast colors then you just make colors 127 and less darker and colors 128 and more brighter
|
|
|
| Report Abuse |
|
|
sonihi
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 3655 |
|
|
| 10 Sep 2016 05:53 PM |
| You could also try and invert using HSV colors. The contrast will match exactly. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 05:54 PM |
| ####################################################################################################################################################### |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 05:55 PM |
because highest contrast of yellow is black or blue of white is black too of green is pink http:// www. colorsontheweb. com/ Color-Theory/ Color-Contrast
and grey can be white or black i think
and yea you want to use HSV |
|
|
| Report Abuse |
|
|