On 28 November 2012 19:45, Stéphane Ducasse <[email protected]> wrote: > So reply to my question? > Should we merge alpha and color? > ifTrue: I will do it. > you mean ColorMappingCanvas and AlphaBlendingCanvas?
i'd rather just remove them. IMO it doesn't worth time & effort. Especially in light of our dream to migrate on Athens :) yes, actually you can merge them and just give mapping as a block: mapingCanvas := otherCanvas asColorMappingCanvas: [:color | color darker ]. and so, you can get rid of all subclasses of ColorMappingCanvas alltogether. But besides of that, i don't particularily like how this is implemented: in order to do such mapping, it wraps the whole canvas protocol... I you would ask such lazy guy, like me, how to implement such functionality properly, i will find a lot of excuses why you should not do it like ColorMappingCanvas does. -- Best regards, Igor Stasenko.
