
Works for fills and strokes (using colors, gradients, or patterns), along with images. fill_rect() has been updated to use fill_path(), which allows it to easily transform the rect, and already supports opacity. Co-authored-by: MacDue <macdue@dueutil.tech>
6 lines
274 B
Text
6 lines
274 B
Text
// https://html.spec.whatwg.org/multipage/canvas.html#canvascompositing
|
|
interface mixin CanvasCompositing {
|
|
// compositing
|
|
attribute unrestricted double globalAlpha; // (default 1.0)
|
|
// FIXME: attribute DOMString globalCompositeOperation; // (default "source-over")
|
|
};
|