Page 1 of 1

Gradient Coloring to text

Posted: Wed Apr 24, 2024 12:09 pm
by Bugala
Not sure if this is even available already, but if not, then to wishlist.

For both TextOut and Text Objects, an option to do Gradient coloring (I think that is what it is called)

The idea is that the top of the text could be dark green, while the bottom of the text is Light Green, and then it changes gradually along the way.

I think it would create a nice effect for the text to use, and having it as an option to use it simply in way of:

Code: Select all

TextOut(100, 100, "TEXT", {colorstyle=gradient, color1=#GREEN, color2=#RED})
Could be useful feature. And actually would even consider giving unlimited amount of colors instead of just color1 and color2, as in can go through several colors along the way, could be done as a table:

Code: Select all

TextOut(100, 100, "TEXT", {colorstyle=gradient, colors = {#GREEN, #RED, #BLUE...})

Re: Gradient Coloring to text

Posted: Thu Apr 25, 2024 7:50 am
by plouf
I think can be done with pangomonium and cairo.PatternLinear()

Re: Gradient Coloring to text

Posted: Thu Apr 25, 2024 8:03 am
by Bugala
Thanks, going to check, didn't even come to my mind to check that.

Re: Gradient Coloring to text

Posted: Sat Apr 27, 2024 11:05 pm
by airsoftsoftwair
plouf wrote: Thu Apr 25, 2024 7:50 am I think can be done with pangomonium and cairo.PatternLinear()
Pangomonium can do lots of things ;)