Re: [css-masking] multiple mask layers and mask-composite

On 03/05/2014 03:15 AM, Dirk Schulze wrote:
>
>> I vaguely remember the problem being something about choosing between
>>   - each layer acts individually as a mask over all the layers+content
>>     before it
>> vs.
>>   - composite all the mask images, then use that as a mask
>> and then the possibility of grouping certain combinations of images
>> rather than all or none. Does your proposal address that in a reasonable
>> way?
>
> I believe so. Not only that, it provides much more control over the content,
> many people familiar with globalCompositeOperators from HTML canvas will
> appreciate having the same capabilities.
>
> The two modes you mention can be archived with source-over (draw layers
> on top of each other and mask together) and destination-in (mask each
> layer with the the next layer and then mask content with the result).

Can you give an example that would accomplish the two behaviors above?
Do I need to be careful with the operator assigned to the last image,
for example?

~fantasai

Received on Wednesday, 5 March 2014 17:02:40 UTC