Gradients made easy!
by
22 Jul 2004
OK - now we all know how to make gradients using our weapon-of-choice image editor, but surely it could be easier than that ? Well from the guy who brought you PNG24 transparent images in IE without that grey box rendering effect comes the next big thing - gradients on the fly! Dynamic images, that will be cached by your browser and can be written to the server if required (not yet implemented). All you need is a text editor, and an array of Hex colour codes to match your forum, and you are ready to rock and roll. Upload the following new files: forumroot/images/gradients/gradient.php forumroot/includes/class.gradient_image.php The forumroot/images/gradients/gradient.php file has instructions for usage in the comments - the class I have used is from phpclasses.org - please read the licensing requirements if you plan on using this in a for-profit situation. Demo: http://mobileforces.org/forums/images/gradients/demo.html - take a look @ the html source for how I am doing each image... Any questions? |