GD Gradient Fill 1.1

This is a PHP function that emulates a gradient fill of an image
It can create rectangle, ellipse, vertical, horizontal or diamond shaped gradients.

Main features:

  • Width and height : integers, dimensions of the image.
  • Direction : string, shape of the gradient.
  • Can be : vertical, horizontal, rectangle (or square), ellipse, ellipse2, circle, circle2, diamond.
  • Startcolor : string, start color in 3 or 6 digits hexadecimal.
  • Endcolor : string, end color in 3 or 6 digits hexadecimal.
  • Step : integer, optional, default to 0. Step that breaks the smooth blending effect.

last updated on:
January 26th, 2010, 3:03 GMT
price:
FREE!
developed by:
Ozh Richard
homepage:
planetozh.com
license type:

Other Free / Open Source License

operating system(s):
Windows / Linux / Mac OS / BSD / Solaris
category:
C: \ Graphics and Multimedia \ Graphics and Animations

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!
1 Screenshot
GD Gradient Fill - Gradient types outputted by this function
What's New in This Release:
  • Changed : more nicely packaged as a class
  • Fixed : not displaying proper gradient colors with image dimension greater than 255 (because of a limitation in imagecolorallocate)
  • Added : optional parameter 'step', more options for 'direction'
read full changelog

Add your review!

SUBMIT