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.
We will need to move createMaskCanvas.js somewhere outside of src since it is part of the demo, not the library. Perhaps assets? Please also move index.js to that directory too.
I didn't look into the function too much, but thanks for the contribution!
Bu
We will need to move
createMaskCanvas.jssomewhere outside ofsrcsince it is part of the demo, not the library. Perhapsassets? Please also moveindex.jsto that directory too.I didn't look into the function too much, but thanks for the contribution!
I would like to make it part of the library, I'll move stuff around
I would like to make it part of the library, I'll move stuff around
I would like to keep the demo and the library separate :)