color mixing
Displaying 1-7 of 7 total.
1
gannon
|
is there a way to do this quickly for two images to an output image
R(result) = (R(1) + R(2)) / 2;
G(result) = (G(1) + G(2)) / 2;
B(result) = (B(1) + B(2)) / 2;
Posted on 2005-03-12 19:41:11
|
gannon
|
Never mind if I understand lucent I can get that effect by blitting the second one onto the first with a lucent of 50.
Posted on 2005-03-12 22:49:02
|
gannon
|
wait no thats not correct :P
but it is good enough for what I want.
still it would be nice to know a good way to do the original problem
(sorry for the triple post)
Posted on 2005-03-13 14:10:11
|
Gayo
|
There is a MixColor command (or something like that) in V3, you know.
Posted on 2005-03-13 23:17:39
|
gannon
|
well the mixing of colors is not the problem its calling thousands of get and set pixels.
This is real time so that wouldn't be an option. Would like any solution to take less than 2 hundredths of a second.
I was wondering if something like that could be done with existing blit functions.
Posted on 2005-03-14 00:05:02 (last edited on 2005-03-14 00:08:14)
|
RageCage
|
blitting with 50% lucency would do what you want.
If that's not what you want... what exactly do you want? visually that is...
Posted on 2005-03-14 00:53:13 (last edited on 2005-03-14 00:54:09)
|
gannon
|
just did some tests and you are right :)
Posted on 2005-03-14 01:23:27 (last edited on 2005-03-14 01:44:44)
|