Python Forum

Full Version: duotone, tritone and quadrotone
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I can use python to create duotone images.
Convert to black & white.
Create a gradient between 2 colors (256 levels) e.g. black + pantone color.
Replace every B&W (x,x,x) pixel-tuple with te corresponding gradient value.

Now I want to experiment with tritone and quadtone.
But the procedure escapes me.
Who could describe in pseudo-code, like above, how that is supposed to work?

thx,
Paul