NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Saturday August 11, 2001
Fonts and Colou?rs
I finally got around to fixing writing text to a channel with freetype2. Then I added UTF8 support.
Back in May Mike Depot suggested that the Imager::Color class was inconsistent with the other Imager classes since it didn't take named parameters. I finally got around to fixing that. You can now use named parameters to do things that you had to write your own code for with Image:
- # just plain RGB
my $rgb = Imager::Color->new(red=>100, blue=>200, green=>255);
# HSV (converted to RGB internally)
my $hsv = Imager::Color->new(h=>120, s=>1, v=>1);
# lookup a name in a GIMP palette
my $gimp = Imager::Color->new(gimp=>$name);
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.