color library

Tofu Ninja via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 22 02:07:26 PDT 2015


On Monday, 22 June 2015 at 08:45:38 UTC, Andrea Fontana wrote:
> On Monday, 22 June 2015 at 08:08:42 UTC, Rikki Cattermole wrote:
> I said "on color or IImage". Anyway transparency is a property 
> (mask) of an image ("material") rather than of the color 
> itself. A color has no transparency, there's no transparency on 
> gamut. It doesn't make sense for a color: transparency is used 
> only when you add an image over another in order to sum the 
> *colors* of two pixels. They used to pack alpha informations 
> with other pixel infos (color) just for simplicity and to have 
> a convenient way to store info inside a file, I guess.

I think alpha being part of the color make perfect sense in many 
contexts, seems kinda silly to try and separate them...


More information about the Digitalmars-d mailing list