/ help / lists / applications / search /
|molar.is > lists > imager-devel > 2001-05||/ threads / authors / dates / subjects /|
Color->new()From: Arnar Mar Hrafnkelsson (email@example.com)
Date: Mon 21 May 2001 - 17:48:42 UTC
The following are our choices:
# Old interfaces:
$color = Imager::Color->new($red, $green, $blue, $alpha);
# New interfaces:
1. $color = Imager::Color->new(red=>100, green=>0, blue=>255, alpha=>128);
The second set looks nicer but they are a bit verbatim for some purposes.
The question is if we really want to implement all of those. At first I
What I propose is That we allow the old interface for now but document
use Imager qw(:handy); # since then you get the NC() hacks too.
But implement the new ones.
The first one makes sense since you could specify gray=> and it would
The second one would be our way of entering various colorspaces (and add
3 and 4 are just convenience things to avoid formatting changes.. I'm not
5. To be able to specify a large number of channels. (when we re-add