Created
June 19, 2019 14:00
-
-
Save shunn/abe04fe0c50f967d4fcda86723a1c949 to your computer and use it in GitHub Desktop.
Name Tag Generator Part 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create our shadow image | |
my $shadow = Image::Magick->new; | |
$shadow->Set( size => '503x339' ); | |
$shadow->ReadImage( 'canvas:black' ); | |
$shadow->Annotate( | |
font => $font, | |
pointsize => $size, | |
fill => 'white', | |
text => $name, | |
x => $x + $offsetx, | |
y => $y + $offsety, | |
antialias => true, | |
); | |
$shadow->Blur( | |
radius => $radius, | |
sigma => $sigma, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment