W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2013

Re: [whatwg] Canvas: compositing and blending operator as enumeration?

From: Dirk Schulze <dschulze@adobe.com>
Date: Wed, 9 Jan 2013 22:36:59 -0800
To: Rik Cabanier <cabanier@gmail.com>
Message-ID: <4140D5BF-1D2D-4407-B3FE-03B5B19E401C@adobe.com>
Cc: WHATWG List <whatwg@whatwg.org>

On Jan 9, 2013, at 9:29 PM, "Rik Cabanier" <cabanier@gmail.com<mailto:cabanier@gmail.com>> wrote:

Hi Dirk,

the 'globalCompositeOperation' property takes the same syntax as the css 'mix' so I don't think an enum will work.

I am not following. What does the CSS property have to do with the canvas attribute?



On Wed, Jan 9, 2013 at 6:18 PM, Dirk Schulze <dschulze@adobe.com<mailto:dschulze@adobe.com>> wrote:

After all the discussions about winding rules and the new introduced enumeration for "nonzero" and "even odd", I wonder if the the compositing and blending modes should be two enumerations as well.

enum CanvasCompositingMode {


enum CanvasBlendingMode {

This wouldn't actually change the behavior or definition a lot, but might help to cleanup a bit. I am happy about other names if they are not good enough.


Received on Thursday, 10 January 2013 06:43:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:19 UTC