It is currently Tue Aug 25, 2026 12:11 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Invert Foreground/Background Color Script
PostPosted: Fri Jun 29, 2018 4:03 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4528
Location: Canada
As I was working in GIMP, I found myself having to draw an area with a color then use Colors/Invert then use the color picker tool to get that inverted color.
I wanted a quicker way to simply invert the working foreground/background color and I didn't see a way to do that so here's a simple script that helps with that: http://www.gimplearn.net/viewtopic.php/ ... f=3&t=1482

_________________
TinT


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Invert Foreground/Background Color Script
PostPosted: Sat Jun 30, 2018 12:59 pm  (#2) 
Offline
GimpChat Member

Joined: Jan 03, 2014
Posts: 97
Here's another idea (haven't checked your code, if it does something similar):
http://www.mattlag.com/scripting/hexcolorinverter.php


Top
 Post subject: Re: Invert Foreground/Background Color Script
PostPosted: Sat Jun 30, 2018 1:39 pm  (#3) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4528
Location: Canada
It's the same I think.
newR = 255 - oldR
newG = 255 - oldG
newB = 255 - oldB

_________________
TinT


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group