W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2012

[whatwg] Adding blending to the canvas API

From: Rik Cabanier <cabanier@gmail.com>
Date: Wed, 11 Apr 2012 16:05:00 -0700
Message-ID: <CAGN7qDAhPZus46QKq+jWVTwzuqJh-SGKMSXSNgRGPbngQMaxGA@mail.gmail.com>

I'm working on a spec to add blending and compositing through simple CSS
keywords. It is trying to define a generic model that is not specific to
Canvas, HTML or SVG and then lists how the model could be implemented.
We've gotten some comments that this feature would be useful in Canvas as
well so I was wondering if it made sense to add it to the canvas API.

I can see 2 ways of adding this:
1. extend the list of compositing operators (
with blending. This is what is currently in the draft spec (
https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html chapter 7)

2. create a new attribute on the context called 'globalBlendOperation' that
takes the same list of blend operations as css (

Any thoughts?
Received on Wednesday, 11 April 2012 16:05:00 UTC

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