From 861bd7642a80ddaa64fc2e8569e4377f71ad41af Mon Sep 17 00:00:00 2001 From: katherinewinter Date: Sun, 10 May 2020 15:45:11 -0400 Subject: [PATCH] fix: use one mask canvas for applying Use one mask to apply background color and transparent areas. Downside, gradients cannot be used as background color. --- index.html | 2 + index.js | 100 ++++++---------------------------------- src/createMaskCanvas.js | 43 +++++++++++++++++ 3 files changed, 59 insertions(+), 86 deletions(-) create mode 100644 src/createMaskCanvas.js diff --git a/index.html b/index.html index e169fc2..c020e49 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,8 @@ + +