Stories
Slash Boxes
Comments
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

use Perl Log In

Log In

[ Create a new account ]

Journal of tonyc (123)

Saturday August 11, 2001
11:26 PM

Fonts and Colou?rs

[ #652 ]

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=&gt200, 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);