Duotone gradient?

C
Posted By
Corey__K
Apr 30, 2004
Views
409
Replies
2
Status
Closed
I am trying to create a two-color gradient in Photoshop 7. What I need is a 2 color gradient, but the color of each individual pixel can only be one of the 2 colors. Imagine a gradient that consists of 100% color "A" pixels at one end, 100% color "B" pixels at the other end, and a gradual transition between color A and B. The gradient must be achieved by changing the percentage of pixels of each color from 100% A to 100% B, but there is NO mixing of the two colors at any one pixel. Can this be done? I need to import this image as jpeg, bmp or tiff into another application which will run a filter on the image. I can only have pure black pixels and pure white pixels, nothing else – but I do need to transition between the two colors.

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

MR
Mike Russell
Apr 30, 2004
CoreyK wrote:
I am trying to create a two-color gradient in Photoshop 7. What I need is a 2 color gradient, but the color of each individual pixel can only be one of the 2 colors. Imagine a gradient that consists of 100% color "A" pixels at one end, 100% color "B" pixels at the other end, and a gradual transition between color A and B. The gradient must be achieved by changing the percentage of pixels of each color from 100% A to 100% B, but there is NO mixing of the two colors at any one pixel. Can this be done? I need to import this image as jpeg, bmp or tiff into another application which will run a filter on the image. I can only have pure black pixels and pure white pixels, nothing else – but I do need to transition between the two colors.

Here’s one way:

1) fill the image with color A
2) create a new layer, and fill it with color B
3) set the second layer’s mode to "Dissolve"
4) add a layer mask to the upper layer, click on the mask in the layers palette, and use the gradient tool to make a black -> white gradient
5) flatten the image and save it in any format you want.



Mike Russell
www.curvemeister.com
www.geigy.2y.net
BV
Bart van der Wolf
Apr 30, 2004
"CoreyK" wrote in message
I am trying to create a two-color gradient in Photoshop 7. What I need is a 2 color gradient, but the color of each individual pixel can only be one of the 2 colors.

One of many ways would be to take an RGB or Grayscale gradient and convert to Indexed Color mode. There you could select Uniform Palette with 2 colors, Noise dithering. Then in the color table select the two colors you need to transition between.

Bart

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections