Topic: GD library help

I'm working on a site idea that would require some image generation with PHP, which is new to me.  The basics right now that need to be done is to generate a gradient and then overlay a pattern on top of that (from a transparent PNG image).

I've got that about halfway working, meaning I can do each of of those independently, but not together.  I first started out tiling the PNG image over a solid colored BG, which works great.  I can even draw shapes on top of that it needed.

For the gradient, I'm using a class someone made, which works great: http://planetozh.com/blog/my-projects/i … ient-fill/

The problem is once I include his code to create the gradient, that's all it does - my code is ignored/overwritten.

Probably the easiest thing I can do here is just show you my code so far, so download the zip file here.