Smoke color gradient

I?m emitting smoke from a cylinder on the right side of the simulator. I?d like to get blue colored smoke on the right side and red colored smoke on the left side as a gradient from blue to red. See the attached picture.
What is the best way to achieve this? I experimented with the smoke gradient in volumetric render settings, but it does not work out the way I need this.

Thanks in advance,

Jan Schwerdtfeger

Hello,

You can set the Smoke color to be based on Texture - set Gradient Ramp as the texture and set it to use Planar from Object XYZ mapping.

Ah, great, that worked exactly as I needed it. Thank you very much, Georgi!!!