1.0.1 • Published 5 years ago
@coderlife/alpha-mix v1.0.1
@coderlife/alpha-mix
Tool for merging mask images and background images.
Demo
Install
npm i -S @coderlife/alpha-mix
Usage
React/Vue usage
import AlphaMix from '@coderlife/alpha-mix"';
VanillaJS usage
<script src="path/to/alpha-mix.min.js"></script>
Initialize
AlphaMix(originImgData, maskImgData, bgImgData)
, returns result ImageData.
originImgData
- ImageData - origin ImageData .maskImgData
- ImageData - mask ImageData.bgImgData
- ImageData - background ImageData.
For example:
var resultImgData = AlphaMix(originImgData, maskImgData, bgImgData)
Like @widgetjs/tree? just 🌟 star the project! Create issues if you find bug.