Search Tools Links Login

Oppisite Colour2 (HEX)


Grab the opposite 6 character HEX color.
This sums up David Weirs Color invert script with just one line of code.
See his original code at http://www.pscode.com/vb/scripts/showcode.asp?txtCodeId=7176&lngWId=4
Be careful when comming close to middle gray scale (808080). opposites are same.

Original Author: Lewis E. Moten III

Code

Invert = Right("000000" & Hex(16777215 - CLng("&h" & Color)), 6)

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 137 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.