diff --git a/js/Util.js b/js/Util.js index 6705ada..a6ba566 100644 --- a/js/Util.js +++ b/js/Util.js @@ -1,6 +1,37 @@ // Acts as a public static class class Util { + /** Pastes the source image data on the destination image data, keeping the pixels where the + * source image data is transparent + * + * @param {*} source + * @param {*} destination + */ + static pasteData(underlyingImageData, pasteData, finalContext) { + for (let i=0; i