首页 技术教程 实用代码 注册破解 正则表达式 网址导航 电子书籍

用PHP实现渐变字体输出

<?phpHeader("Content-type: image/png"); $txt=$_GET['txt']."(刷新我会变色哦)";$i=strlen($txt);$width=16*strlen($txt);$height=42*(int)($width/500+1);$im = imagecreate($width,$height);$background_color=imageColorAllocate($im,223,223,223);$white=imageColorAllocate($im,255,255,255);$color1=imageColorAllocate($im,255,128,128);$red=imageColorAllocate($im,255,0,0);$color3=imageColorAllocate($im,128,64,64);$yellow=imageColorAllocate($im,255,255,0);$color4=imageColorAllocate($im,255,128,0);$color5=imageColorAllocate($im,128,128,0);$green=imageColorAllocate($im,0,255,0);$color6=...
类别:网页编程 - PHP技术    查看:41    更新:2014-05-19