Jump to content

Invert Colours?


AzKay
 Share

Recommended Posts

Oh, And an example of what im looking for would be

Start > Run > Magnify

Once thats up, Check "Invert Colors".

Thats what im looking for. ( Without the magnify part ;) )

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

#include <Color.au3>

MsgBox(64, "", "0xFF0000" & @CRLF & _ColorInverse(0xFF0000))

Func _ColorInverse($nColor)
    Local $nRed =   _ColorGetRed($nColor)
    Local $nGreen = _ColorGetGreen($nColor)
    Local $nBlue =  _ColorGetBlue($nColor)  
    
    Return "0x" & Hex(255 - $nRed, 2) & Hex(255 - $nGreen, 2) & Hex(255 - $nBlue, 2)
EndFunc

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...