generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Invert colors

Previous Thread :: Next Thread 
caca50 is not online. 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 is not online. 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 is not online. 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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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 is not online. sonihi
Joined: 27 Jun 2009
Total Posts: 3655
10 Sep 2016 05:47 PM
###########################################
Report Abuse
sonihi is not online. 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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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 is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
10 Sep 2016 05:49 PM
But... the inverse of grey _is_ grey


Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
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 is not online. 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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
10 Sep 2016 05:54 PM
#######################################################################################################################################################
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image