It is currently Sun Sep 27, 2026 11:50 am


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: 4557
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

_________________
Image
Visualize your and others dreams coming true.


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: 4557
Location: Canada
It's the same I think.
newR = 255 - oldR
newG = 255 - oldG
newB = 255 - oldB

_________________
Image
Visualize your and others dreams coming true.


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group