No, I don't think so. I've been thinking about what I'm trying to do andQuote:> Or you might be thinking of alpha-channel based processing where the two solid
> areas are in different layers, and an alpha channel determines how much a pixel
> from each layer affects the pixels near the borders of the solids areas. I
> can't point you towards any source code implementations of this, but various
> applications support it, including Photoshop. The alpha channels are usually
> in the form of gradients, not random noise functions.
I've come up with a better way of describing it. I still don't know what
the term is, but I don't believe it is called dithering nor has anything
to do with alpha channels.
Let's say I have a black region and a white region in juxtapose. The
boundary is vertical, right down the middle. Let's say black is on the
left, white is on the right. I want to create a gradient effect with
only black and white. I think what I would want to do is, based on
distance from the boundary, on going left I sprinkle lesser and lesser
proportions of white on the black area, and the same with the right
side, only with black. This creates a black -> white gradient effect
with only two colors.
My context for doing this is that I have a gradient of 16 bands from
left to right. I only have those 16 colors to work with. I'd like to
make the gradient appear as smooth as possible. I'd also like to do this
on the fly as the gradient is displayed, so it would be really nice if
the algorithm is fast.
What I'd like to know is the term for this, and the technique for doing
it. If anyone can tell me what it's called and possibly where I might be
able to find such information on the Internet, it would be absolutely
great.
Thanks.