cartoons -> global composite operation mapping
This commit is contained in:
parent
c3b159b64d
commit
27bba39f07
@ -19,18 +19,18 @@ var carto = global.carto || require('carto');
|
|||||||
].join('\n');
|
].join('\n');
|
||||||
|
|
||||||
var COMP_OP_TO_CANVAS = {
|
var COMP_OP_TO_CANVAS = {
|
||||||
"src": 'source-over',
|
"src": 'source-over',
|
||||||
"src-over": 'source-over',
|
"src-over": 'source-over',
|
||||||
"dst-over": 'destination-over',
|
"dst-over": 'destination-over',
|
||||||
"src-in": 'source-in',
|
"src-in": 'source-in',
|
||||||
"dst-in": 'destination-in',
|
"dst-in": 'destination-in',
|
||||||
"src-out": 'source-out',
|
"src-out": 'source-out',
|
||||||
"dst-out": 'destination-out',
|
"dst-out": 'destination-out',
|
||||||
"src-atop": null,
|
"src-atop": 'source-atop',
|
||||||
"dst-atop": null,
|
"dst-atop": 'destination-atop',
|
||||||
"xor": null,
|
"xor": 'xor',
|
||||||
"darken": 'darken',
|
"darken": 'darken',
|
||||||
"lighten": 'lighten'
|
"lighten": 'lighten'
|
||||||
}
|
}
|
||||||
|
|
||||||
function compop2canvas(compop) {
|
function compop2canvas(compop) {
|
||||||
|
Loading…
Reference in New Issue
Block a user