« Return to Thread: ANN: AC-Vector, AC-Colour and AC-EasyRaster-GTK

Re: ANN: AC-Vector, AC-Colour and AC-EasyRaster-GTK

by Brandon S. Allbery KF8NH :: Rate this Message:

Reply to Author | View in Thread

On Jul 4, 2009, at 15:01 , Max Rabkin wrote:
> On Sat, Jul 4, 2009 at 8:38 PM, Andrew
> Coppin<andrewcoppin@...> wrote:
>> 3. It doesn't appear to provide arithmetic over colours.
>
> It provides darken, blend and addition (though addition is called
> mappend rather than (+)). signum, abs and fromInteger don't make a
> huge amount of sense for colours.

I don't see a good meaning for signum offhand, but fromInteger could  
take an X11-encoded RGB value and abs could produce grayscale  
brightness.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@...
system administrator [openafs,heimdal,too many hats] allbery@...
electrical and computer engineering, carnegie mellon university    KF8NH




_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

PGP.sig (202 bytes) Download Attachment

 « Return to Thread: ANN: AC-Vector, AC-Colour and AC-EasyRaster-GTK