tags:

views:

42

answers:

1

I want to generate this image in PHP with different colors for a skinning module in my app. How do I go about it?

image(2x40 pixels):

alt text

magnified 4x

alt text

The original image was generated using the gradient tool in paint.net with base color 00137F.

+2  A: 

I've used this gradient class before, you may find it helpful: http://planetozh.com/blog/my-projects/images-php-gd-gradient-fill/

zevlag
Why do I get a This image cannot be displayed error in firefox when I am using $image = new gd_gradient_fill(200,200,'vertical','#fff','#fcc',0);
abel
@zevlag I get an error in FF saying The image has error and cannot be displayed
abel