Page 1 of 1

Add a Gradient Effect to TruetypeText Module

Posted: Sun Nov 08, 2009 5:15 am
by kendo451
I find TruetypeText module to be one of the most useful CMSMS modules.  It allows me to dynamically do image replacement on my sites.

However, there is one effect I'd really like to see in that module: text with a color gradient from top to bottom.

Here is an example:

Image

The TrueType Text module uses the GD php image library.  To add the gradient you need to add a gradient function to the TruetypeText class in the file: class.ttt.php (in the TruetypeText folder).

Here is an article with the code to make a gradient using GD.
http://www.xtremepccentral.com/forums/showthread.php?t=17981

I would be more than willing to donate some $ to a developer who could add the image gradient effect to the TruetypeText module. kengriffith at gmail dot com