Microsoft
Software
Hardware
Network
Question : Calculating RGBA given different RGB colours.
Hello,
I have three RGB colours, background, foreground and target. The target colour is always between the background and foreground colours. Now, given these three RGB colours, I want to find out what the alpha channel of the foreground colour should be to give the closest approximation of the target colour that only had the RGB channels.
Any ideas on where I can even start this thing???
Thanks,
Uni
Answer : Calculating RGBA given different RGB colours.
depending n how you define closest, it may be
(rt+gt+bt)-(rb+gb+bb)/((rf
+gf+bf)-(r
b+gb+bb))
or
((rt-rb)/(rf-rb)+(gt-gb)/(
gf-gb)+(bt
-bb)/(bf-b
b))/3
perhaps with gamma or other correction
Random Solutions
PHP Pass Parameters to Online Activation Page
Emc Networker mminfo command
Compare 2 separate databases
Zebra LP 2844 label printer prints the first print job successfully, subsequent print jobs after skip labels and/or print partial data on labels until computer is rebooted.
I/O error reported on file system /oracle/P1U aix hdisk path vio
IIS 6.0 asp.net 2.0 cpu performance issue
asp.net page to test database connectivity
subnet beginner ?
AP not accepting its service controller.
C# code for writing up a class file....