Page 1 of 1

Gradient color change for typing [Question]

Posted: Sun Dec 01, 2024 2:47 pm
by MedBooster
Is there a way to achieve this?

Not necessarily rainbow colored (random or ROYGBIV order), which would be cool though....

But maybe a gradient, like you start with a dark red color end end up with a light red color or orange

or would you have to do this with JavaScript?

And would you be able to apply this gradient evenly, or only per letter?

I guess you could perhaps use some gradient image and use the right blend settings to get this gradient effect...

or are blend modes only for shapes like rectangles with their SINGLE stroke color?

Re: Gradient color change for typing [Question]

Posted: Mon Dec 02, 2024 6:02 pm
by Daniel - PDF-XChange
Hello, MedBooster

While blend modes can be applied to various content types, including text and images, achieving a gradient, even with them, would be difficult and rather restrictive to your content configuration.
In practice, the only way to achieve this I could see was the multiply blend mode, used with a black page background, and white text. If you place a "gradient" image overtop with multiply enabled on it, the gradient color is applied to the text.

Beyond that, I do not believe the spec allows for gradient colors to be defined in any standard color selector area (base content text, shapes, or most comments). In effect, the only gradients possible would likely be image based solutions.

Kind regards,