This simplifies things a lot.
Just do an animated mix (crossfade) of the 2 text layers, including the
alpha channels, then simply composite the result over your background.
I'm not sure exactly which blend mode you'd use, but it will be a simple
alpha composite/blend/mix.
paulm
On 28/09/2009,
With a second thought, I think it would do perfectly with simply
averaging ALL channels, R, G, B, and A, for this cross-fade effect.
So I am reformulating my questions as follows: How do I produce the
blending mode when the foreground and background colors are averaged
channel-wise, for all channe
Paul, thanks for such an exhaustive answer!
Here are answers to your questions:
1. My case is the simple one -- I'm rendering all text layers at once.
2. Yes and no. As I said, I am implementing the cross-fade effect,
when one text fades out and another text fades in. The texts can be of
the same
This is a multi-pass operation - you wont find a single
blend mode that will do this in any simple manner.
First question: Are you doing this all in one hit, or sequentially,
ie, rendering the first layer of text then adding subsequent
layers later?
Second question: is the text all the same colou
Thanks!
It seemed exactly what I need but I've found that it doesn't work as
expected. The interpolated semi-transparent parts of the rendered text
still appears brighter than it should.
Namely, consider drawing white text on black background, and then
drawing the same white text one more time ov
On Sep 22, 2009, at 6:22 AM, Oleg Krupnov wrote:
Hi,
I'd like to draw in a graphics context in such a compositing mode:
R = MAX(S, D)
i.e. out of two colors (source and destination), the maximum color
(channel-wise) was chosen. This is basically equivalent to ORing the
colors.
This is the
Thanks for quick reply.
> Rr = (Sr > Dr) ? Sr : Dr
> Rg = (Sg > Dg) ? Sg : Dg
> Rb = (Sb > Db) ? Sb : Db
Yes, that's what I want. After giving it another thought, I see that
it's not equivalent to bitwise OR, say MAX (1,2) = 2, wheres OR (1,2)
= 3.
Anyway, I would like to know if it's possible t
Thanks for quick reply.
> Rr = (Sr > Dr) ? Sr : Dr
> Rg = (Sg > Dg) ? Sg : Dg
> Rb = (Sb > Db) ? Sb : Db
Yes, that's what I want. After giving it another thought, I see that
it's not equivalent to bitwise OR, say MAX (1,2) = 2, wheres OR (1,2)
= 3.
Anyway, I would like to know if it's possible t
On 22 Sep, 2009, at 15:22, Oleg Krupnov wrote:
Hi,
I'd like to draw in a graphics context in such a compositing mode:
R = MAX(S, D)
i.e. out of two colors (source and destination), the maximum color
(channel-wise) was chosen. This is basically equivalent to ORing the
colors.
Is this possible
Hi,
I'd like to draw in a graphics context in such a compositing mode:
R = MAX(S, D)
i.e. out of two colors (source and destination), the maximum color
(channel-wise) was chosen. This is basically equivalent to ORing the
colors.
Is this possible? I don't see such NSCompositingOperation. There's
10 matches
Mail list logo