Since alot of people want the glow effect (and maybe the mask effect), i wanted to publish that part of my script earlier then the next version of the complete signature script.
Content:
- Textglow
- Textstroke
- Rustical textstroke
- Apply mask by RGB or Alpha mask
- Set Alpha by RGB or Alpha mask
- Copy an image on another with multiply or screen mode
An example of what is posible with this script:
code of this example:
<?php
require("imagettf.php");
$fontfile = "Marydale.ttf";
$size = 30;
$angle = 10;
$x = 30;
$y = 75;
$glowsize = 8;
$rusticalsize = 10;
$strokesize = 5;
$image = imagecreatetruecolor(290, 210);
imagealphablending($image, true);
imagesavealpha($image, true);
$bgcolor = imagecolorallocatealpha($image, 255, 255, 255 , 127);
imagefill($image, 0, 0, $bgcolor);
$textColor = imagecolorallocate($image, 0, 0, 0);
$glowEndColor = imagecolorallocatealpha($image, 255, 255, 255, 127);
$strokeColor = imagecolorallocate($image, 0, 255, 0);
$sparkleColor = imagecolorallocatealpha($image, 255, 220, 0, 0);
$sparkleEndColor = imagecolorallocatealpha ($image, 255*0.6, 220*0.6, 0,0);
imagettfglow($image, $size, $angle, $x, $y, $textColor, $fontfile, "Glow example", $glowsize, $glowEndColor);
imagettftext($image, $size, $angle, $x, $y, $textColor, $fontfile, "Glow example");
$y+=60;
imagettfrustical($image, $size, $angle, $x, $y, $sparkleColor, $fontfile, "Rustical example", $rusticalsize, $sparkleEndColor);
imagettftext($image, $size, $angle, $x, $y, $textColor, $fontfile, "Rustical example");
$y+=60;
imagettfstroke($image, $size, $angle, $x, $y, $strokeColor, $fontfile, "Stroke example", $strokesize, $strokeColor);
imagettftext($image, $size, $angle, $x, $y, $textColor, $fontfile, "Stroke example");
header("Content-Type: image/png");
imagepng($image);
?>
Download
Enjoy!