Fonts and Colou?rs

tonyc on 2001-08-12T04:26:54

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);